createRotation

fun createRotation(firstAngle: Double, secondAngle: Double, thirdAngle: Double, sequence: RotationSequence, angleUnit: AngleUnit = AngleUnit.RADIANS): AffineTransformationMatrix3(source)

Creates a combined rotation transformation matrix using the specified rotation sequence. This is more efficient than multiplying individual rotation matrices as it computes the final transformation matrix directly using trigonometric identities.

Return

A new AffineTransformationMatrix3 representing the combined rotation.

Parameters

firstAngle

The first rotation angle.

secondAngle

The second rotation angle.

thirdAngle

The third rotation angle.

sequence

The rotation sequence to use (e.g., ZYX, XYZ).

angleUnit

The unit of the angles, defaults to AngleUnit.RADIANS.