Salta ai contenuti
Seleziona lingua:Italiano
Questa pagina è disponibile solo in inglese.

MCL 1.3.5

fun rotation(axis: Vec3d, angle: Double): Mat4d

Creates a new rotation matrix.

Return

The rotation matrix.

Parameters

axis

Rotation axis.

angle

Rotation angle in radians.


Creates a new rotation matrix.

Return

The rotation matrix.

Parameters

q

Rotation quaternion.


fun rotation(qx: Double, qy: Double, qz: Double, qw: Double): Mat4d

Creates a new rotation matrix.

Return

The rotation matrix.

Parameters

qx

Rotation axis x-component.

qy

Rotation axis y-component.

qz

Rotation axis z-component.

qw

Rotation scalar.