Module crystal_ball::math
source · Expand description
Data types and functions related to math with focus on vectors.
Structs§
- A 2-dimensional bounding rectangle represented by its minimum and maximum corner.
- A 3-dimensional bounding box represented by its minimum and maximum corner.
- A 4x4 row-major matrix.
- A 2-dimensional point.
- A 3-dimensional point.
- A ray in 3D space.
- A transform in 3D space consisting of a transformation matrix and its inverse.
- A 2-dimensional vector.
- A 3-dimensional vector.
- A 4-dimensional vector.
Enums§
- X, Y, and Z directions expressed by indices.
Traits§
- An interface to easily apply transformations.