Expand description
Miscellaneous utilities.
Constants§
- DIM_
MINUS_ ONE - Dimension minus one (1 for 2D, 2 for 3D).
Traits§
- Angular
Inertia Ops - Trait for angular inertia operations.
- Component
Mul - Extension trait for element-wise vector operations
- Copy
Sign - Trait to copy the sign of each component of one scalar/vector/matrix to another.
- Cross
Product - Trait for computing generalized cross products.
- Cross
Product Matrix - Trait for computing cross product matrices.
- DotProduct
- Trait for computing generalized dot products.
- Index
Mut2 - Methods for simultaneously indexing a container with two distinct indices.
- Matrix
Column - Extension trait for matrix column access (like nalgebra’s
.column()) - Orthonormal
Basis - Trait to compute the orthonormal basis of a vector.
- PoseOps
- Trait for pose types (isometry) providing access to rotation and translation.
- Rotation
Ops - Trait implemented by 2D rotation types (UnitComplex).
- Scalar
Type - Trait for types that can be used as scalars in the generic code supporting both the scalar and AoSoA SIMD pattern.
- Simd
Length - Trait for computing generalized lengths.
- Simd
Real Copy - The trait for real numbers used by Rapier.
- Simd
Select - Trait for conditional selection between two values.
Functions§
- mat_
to_ na - Convert glam Matrix to nalgebra
Matrix2<Real>(2D matrix) - smallest_
abs_ diff_ between_ angles - Calculate the difference with smallest absolute value between the two given angles.
- smallest_
abs_ diff_ between_ sin_ angles - Calculate the difference with smallest absolute value between the two given values.
- try_
normalize_ and_ get_ length - Try to normalize a vector and return both the normalized vector and the original length.
- vect_
to_ na - Convert glam Vector to nalgebra
SimdVector<Real>