Mat4

4x4 Matrix structure for transformations

Members

Static functions

identity
Mat4 identity()

Creates an identity matrix

lookAt
Mat4 lookAt(Vec3 eye, Vec3 center, Vec3 up)

Creates a view matrix for camera positioning

mul
Mat4 mul(Mat4 left, Mat4 right)

Multiplies two matrices

perspective
Mat4 perspective(float fov, float aspect, float near, float far)

Creates a perspective projection matrix

rotate
Mat4 rotate(float angle, Vec3 axis)

Creates a rotation matrix around a specified axis

translate
Mat4 translate(Vec3 translation)

Creates a translation matrix

zero
Mat4 zero()

Creates a zero matrix

Variables

m
float[4][4] m;
Undocumented in source.

Meta