Crate mathx

Source

Modules§

collision
interfaces

Structs§

Color
A structure for a color where each channel is a floating point value between 0.0 and 1.0
Math
A “static” structure used to compute math functions. Since f32 gets a lot of it’s functions stripped away when using no_std, you can use this structure to regain those functions. It will also work the same even if you don’t use it for no_std.
Plane
A struct that represents a 3D plane
Quaternion
A 4D quaternion that holds 3 complex numbers and 1 real number structured as such: (a + b i + c j + d k)
Ray2
A 2D ray that holds an origin and direction both as 2D vectors
Ray3
A 3D ray that holds an origin and direction both as 3D vectors
Vector2
A 2D vector that holds an x-coordinate and y-coordinate
Vector3
A 3D vector that holds an x-coordinate, y-coordinate, and z-coordinate