diff options
| author | Crozet Sébastien <developer@crozet.re> | 2020-12-30 17:46:22 +0100 |
|---|---|---|
| committer | Crozet Sébastien <developer@crozet.re> | 2020-12-30 17:46:22 +0100 |
| commit | 5e35250183c863eb0a4c569fa29ec2acdc4202dc (patch) | |
| tree | 63f85437080fdf1f66300e8b4ef07b4d2e768594 /src/lib.rs | |
| parent | 43628c8846c8805d2f835dda4182b7240292900c (diff) | |
| download | rapier-5e35250183c863eb0a4c569fa29ec2acdc4202dc.tar.gz rapier-5e35250183c863eb0a4c569fa29ec2acdc4202dc.tar.bz2 rapier-5e35250183c863eb0a4c569fa29ec2acdc4202dc.zip | |
Define the MAX_MANIFOLD_POINTS in this crate.
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -128,4 +128,11 @@ pub mod dynamics; pub mod geometry; pub mod pipeline; pub mod utils; -pub use cdl::math; + +pub mod math { + pub use cdl::math::*; + #[cfg(feature = "dim2")] + pub const MAX_MANIFOLD_POINTS: usize = 2; + #[cfg(feature = "dim3")] + pub const MAX_MANIFOLD_POINTS: usize = 4; +} |
