Module prelude

Source
Expand description

Frequently used types and constructor functions.

Structs§

Color
Unpremultiplied RGBA floating-point channels. No implicit gamma conversion.
Mat4
Column-major 4x4 matrix acting on column vectors: translation * rotation * scale.
Quat
Quaternion stored as vector part (x,y,z) followed by scalar part w.
Rect
Axis-aligned 2D rectangle. Width and height should be nonnegative.
Vec2
Vec3
Vec4

Enums§

EulerRot
Intrinsic Euler rotations: XYZ(a,b,c) composes Rx(a) * Ry(b) * Rz(c).

Functions§

vec2
vec3
vec4