Skip to content
Select language:English

MCL 1.3.5

object Companion

Functions

Creates a new matrix from a pose array.

fun fromPose(q: Quatf, t: Vec3f): Mat4f

Creates a new matrix from a rotation quaternion and a translation vector.

fun fromPose(axis: Vec3f, angle: Float, t: Vec3f): Mat4f

Creates a new matrix from a rotation axis and angle and a translation vector.

Creates a new matrix from a row-major array.

Creates a new identity matrix.

fun rotation(axis: Vec3f, angle: Float): Mat4f
fun rotation(qx: Float, qy: Float, qz: Float, qw: Float): Mat4f

Creates a new rotation matrix.

fun scaling(sx: Float, sy: Float, sz: Float): Mat4f

Creates a new scaling matrix.

fun translation(tx: Float, ty: Float, tz: Float): Mat4f

Creates a new translation matrix.

fun zero(): Mat4f

Creates a new zero matrix.