create Rotation
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
first Angle
The first rotation angle.
second Angle
The second rotation angle.
third Angle
The third rotation angle.
sequence
The rotation sequence to use (e.g., ZYX, XYZ).
angle Unit
The unit of the angles, defaults to AngleUnit.RADIANS.