Module avian3d::math

source ·
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§

Traits§

  • Adjust the precision of the math construct to the precision chosen for compilation.
  • Adjust the precision down to f32 regardless of compilation.
  • An extension trait for computing reciprocals without division by zero.

Functions§

Type Aliases§

  • The dimension-specific matrix type used by Avian.
  • The 2x2 matrix type used by Avian.
  • The 3x3 matrix type used by Avian.
  • The quaternion type used by Avian.
  • The floating point number type used by Avian.
  • The vector type used by Avian.
  • The vector type used by Avian. This is always a 2D vector regardless of the chosen dimension.
  • The vector type used by Avian. This is always a 3D vector regardless of the chosen dimension.