rotate

fun rotate(angle: Double, angleUnit: AngleUnit = AngleUnit.RADIANS): AffineTransformationMatrix2(source)

Rotates the transformation matrix by a specified angle. The angle can be specified in either radians or degrees.

Return

A new affine transformation matrix with the rotation applied.

Parameters

angle

The angle to rotate the matrix.

angleUnit

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