[−][src]Module spritec::math
Math-related utilities/constants/type definitions.
The vek crate that we use to provide math primitives is very generic, but we will always want to use it with floats. This module exports type aliases that allow us to not have to specify that we are using "f32" all the time.
Modules
transforms |
Structs
Degrees | A "newtype" to represent a value with the unit "degrees" |
Milliseconds | |
Radians | A "newtype" to represent a value with the unit "radians" |
Traits
Decompose | Extension trait that allows you to decompose a transformation matrix into its scale, rotation, and translation components. |
Type Definitions
FrustumPlanes | |
Mat2 | |
Mat3 | |
Mat4 | |
Quaternion | |
Rgb | |
Rgba | |
Transforms | |
Vec2 | |
Vec3 | |
Vec4 |