Skip to content
Select language:English

MCL 1.3.5

Creates a new matrix from a pose array.

Return

The rigid transformation matrix.

Parameters

pose

Pose array.


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

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

Return

The rigid transformation matrix.

Parameters

q

Rotation quaternion.

t

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.

Return

The rigid transformation matrix.

Parameters

axis

Rotation axis.

angle

Rotation angle in radians.

t

Translation vector.