Module macroquad::math [−][src]
Math types and helpers.
Consists of re-exported glam
types with some additions.
Modules
swizzles |
Macros
const_mat2 | Creates a |
const_mat3 | Creates a |
const_mat4 | Creates a |
const_quat | Creates a |
const_vec2 | Creates a |
const_vec3 | Creates a |
const_vec3a | Creates a |
const_vec4 | Creates a |
Structs
Mat2 | |
Mat3 | A 3x3 column major matrix. |
Mat4 | A 4x4 column major matrix. |
Quat | |
Rect | |
RectOffset | |
Vec2 | A 2-dimensional vector. |
Vec2Mask | A 2-dimensional vector mask. |
Vec3 | A 3-dimensional vector without SIMD support. |
Vec3A | |
Vec3AMask | A 3-dimensional vector mask. |
Vec3Mask | A 3-dimensional vector mask. |
Vec4 | A 4-dimensional vector. |
Vec4Mask |
Traits
Vec2Swizzles | |
Vec3ASwizzles | |
Vec3Swizzles | |
Vec4Swizzles |
Functions
cartesian_to_polar | Converts 2d cartesian coordinates to 2d polar coordinates. |
clamp | Returns value, bounded in range [min, max]. |
mat2 | Creates a |
mat3 | Creates a |
mat4 | Creates a |
polar_to_cartesian | Converts 2d polar coordinates to 2d cartesian coordinates. |
quat | Creates a |
vec2 | Creates a |
vec3 | Creates a |
vec3a | Creates a |
vec4 | Creates a |