Expand description
Math types and traits used by the crate.
Most of the math types are feature-dependent, so they will be different for 2d/3d and f32/f64.
Structs§
Constants§
- DIM
- The active dimension.
Traits§
- MatExt
- An extension trait for matrix types.
- Recip
OrZero - An extension trait for computing reciprocals without division by zero.
- ToF32
Precision - Adjusts the precision of the math type to
f32. - ToReal
Precision - Adjusts the precision of the math type to the
Realnumber precision.
Functions§
- next_
down_ vector - Returns a single-precision vector with each component being at least as small as the corresponding component of the input vector.
- next_
up_ vector - Returns a single-precision vector with each component being at least as large as the corresponding component of the input vector.
- orthonormal_
basis - Computes the rotation matrix of the orthonormal basis computed from the given axes.
- orthonormal_
basis_ from_ vec - Computes the rotation matrix of the orthonormal basis computed from the given axis.
Type Aliases§
- RMat2
- The real number 2x2 matrix type used by Avian.
- RMat3
- The real number 3x3 matrix type used by Avian.
- RVec2
- The real number 2D vector type used by Avian.
- RVec3
- The real number 3D vector type used by Avian.
- RVector
- The real number vector type used by Avian.
- Real
- The real number type used by Avian.
- Symmetric
Tensor - The symmetric tensor type used by Avian. Often used for angular inertia.