Expand description
Math types and utilities for parry, wrapping glam types.
Re-exports§
Structs§
- Mat2
- A 2x2 column major matrix.
- Mat3
- A 3x3 column major matrix.
- Pose2
- A 2D pose (rotation + translation), representing a rigid body transformation (f32 precision).
- Pose3
- A 3D pose (rotation + translation), representing a rigid body transformation (f32 precision).
- Rot2
- A 2D rotation represented as a unit complex number (f32 precision).
- Symmetric
Eigen2 - The eigen decomposition of a symmetric 2x2 matrix (f32 precision).
- Symmetric
Eigen3 - The eigen decomposition of a symmetric 3x3 matrix (f32 precision).
- Vec2
- A 2-dimensional vector.
- Vec3
- A 3-dimensional vector.
- Vec4
- A 4-dimensional vector.
- Vec3A
- A 3-dimensional vector.
Constants§
- DEFAULT_
EPSILON - The default tolerance used for geometric operations.
- DIM
- The dimension of the space.
- SIMD_
LAST_ INDEX - SIMD_WIDTH - 1
- SIMD_
WIDTH - The number of lanes of a SIMD number.
- TWO_DIM
- The dimension of the space multiplied by two.
Traits§
- Complex
Field - Trait shared by all complex fields and its subfields (like real numbers).
- MatExt
- Extension trait for square matrix types.
- Real
Field - Trait shared by all reals.
- Vector
Ext - Extension trait for glam vector types to provide additional functionality.
Functions§
- ivect_
to_ vect - Converts an integer vector to a floating-point vector.
- vect_
to_ ivect - Converts a floating-point vector to an integer vector.
Type Aliases§
- AngVector
- The angular vector type (scalar for 2D).
- Angular
Inertia - The angular inertia of a rigid body (scalar for 2D).
- Cross
Matrix - A matrix that represent the cross product with a given vector.
- IVector
- The integer vector type.
- Matrix
- The matrix type.
- Matrix2
- A 2x2 matrix type for use in any dimension context.
- Matrix3
- A 3x3 matrix type for use in any dimension context.
- Orientation
- The orientation type (scalar angle for 2D).
- Pose
- The transformation matrix type (pose = rotation + translation).
- Principal
Angular Inertia - The principal angular inertia of a rigid body (scalar for 2D).
- Rot3
- A 3D rotation represented as a unit quaternion (f32 precision).
- Rotation
- The rotation type.
- SdpMatrix
- A 2D symmetric-definite-positive matrix.
- Simd
Bool - A SIMD bool with SIMD_WIDTH lanes.
- Simd
Real - A SIMD float with SIMD_WIDTH lanes.
- Spatial
Vector - A vector with a dimension equal to the maximum number of degrees of freedom of a rigid body.
- Symmetric
Eigen - The result of eigendecomposition of a symmetric matrix.
- Vector
- The vector type.
- Vector2
- A 2D vector type for use in any dimension context.
- Vector3
- A 3D vector type for use in any dimension context.