Skip to content
Select language:English

MCL 1.3.5

object Companion

Functions

Creates a new matrix from a pose array.

fun fromPose(q: Quatd, t: Vec3d): Mat4d

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

fun fromPose(axis: Vec3d, angle: Double, t: Vec3d): Mat4d

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: Vec3d, angle: Double): Mat4d
fun rotation(qx: Double, qy: Double, qz: Double, qw: Double): Mat4d

Creates a new rotation matrix.

fun scaling(sx: Double, sy: Double, sz: Double): Mat4d

Creates a new scaling matrix.

fun translation(tx: Double, ty: Double, tz: Double): Mat4d

Creates a new translation matrix.

fun zero(): Mat4d

Creates a new zero matrix.