Module math

Source
Expand description

Math related functionality, and aliases to nalgebra structs.

Also includes the Color32 and Color8 structs.

Structs§

Color8
An RGBA color represented with four u8s.
Color32
An RGBA color represented with four f32s.

Traits§

Lerp
Linearly interpolate between two values.
Random
Trait for generating random values

Functions§

clamp
Returns a reference to the input value clamped to the interval [min, max].

Type Aliases§

Mat4
An alias to nalgebra::Matrix4<f32>.
Ortho
An alias to nalgebra::Orthographic3<f32>.
Point
A Point is an alias to Vec2.
Vec2
An alias to nalgebra::Vector2<f32>.
Vec3
An alias to nalgebra::Vector3<f32>.
Vec4
An alias to nalgebra::Vector4<f32>.