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
.
Constants§
- DIM
- The active dimension.
- FRAC_
1_ SQRT_ 2 - 1/sqrt(2)
- FRAC_
PI_ 2 - The PI/2 constant.
- PI
- The PI constant.
- TAU
- The TAU constant.
Traits§
- Adjust
Precision - Adjust the precision of the math construct to the precision chosen for compilation.
- AsF32
- Adjust the precision down to
f32
regardless of compilation. - MatExt
- An extension trait for matrix types.
- Recip
OrZero - An extension trait for computing reciprocals without division by zero.
Functions§
- skew_
symmetric_ mat3 - Computes the skew-symmetric matrix corresponding to the given vector.
Type Aliases§
- Matrix
- The dimension-specific matrix type used by Avian.
- Matrix2
- The 2x2 matrix type used by Avian.
- Matrix3
- The 3x3 matrix type used by Avian.
- Quaternion
- The quaternion type used by Avian.
- Scalar
- The floating point number type used by Avian.
- Vector
- The vector type used by Avian.
- Vector2
- The vector type used by Avian. This is always a 2D vector regardless of the chosen dimension.
- Vector3
- The vector type used by Avian. This is always a 3D vector regardless of the chosen dimension.