dimforge / parry

2D and 3D collision-detection library for Rust.
https://parry.rs
Apache License 2.0
557 stars 97 forks source link

Make ShapeType hashable #30

Closed sebcrozet closed 3 years ago

sebcrozet commented 3 years ago

This makes the ShapeType enum usable as a HashMap key. This also includes an unrelated small changes: the order of vertices output by Cuboid::to_polyline has been modified as it was invalid before (it did not represent the boundary of the cuboid as it included its diagonal).