[−][src]Crate quick_maths
Modules
mat | Matrix definitions |
num | Convenience re-export of num-traits |
quat | Quaternion definitions |
ray | Simple Ray definitions |
transform | Invertible transforms based on http://www.pbr-book.org/3ed-2018/Geometry_and_Transformations/Transformations.html |
vec | Vector definitions |
Structs
Matrix | A matrix, where each vector represents a column |
Ray | |
Transform | Transform type which represents an easily invertible operator. i.e. rotation in 3D, translation, etc. |
Vector | Vector over floats and a const-size. Often used through Vec2, Vec3, and Vec4 instead of the raw struct. |
Traits
Float | A trait which is both a float and debug. |
One | Defines a multiplicative identity element for |
Zero | Defines an additive identity element for |
Type Definitions
DefaultFloat | The default float used by all structures. When constructing a vector and omitting the type, this will be used. |
Mat2 | 2x2 Matrix |
Mat3 | 3x3 Matrix |
Mat4 | 4x4 Matrix |
Transform3 | 2D transformation, where 3 represents the dimension of the matrix used. |
Transform4 | 3D transformation, where 4 represents the dimension of the matrix used. |
Vec2 | 2D vector with default float type (f32). |
Vec3 | 3D vector with default float type (f32). |
Vec4 | 4D vector with default float type (f32). Often implicitly created by Vec3::homogeneous. |