Rotation

constructor(x: Double = 0.0, y: Double = 0.0, z: Double = 0.0, origin: Vector3dc, rescale: Boolean = false)

Parameters

angle

The angle of the rotation. Can be 45.0, 22.5, -22.5, -45.0

axis

The axis of the rotation.

origin

The origin / pivot point of the rotation.

rescale

Whether the model should be rescaled to fit the new size. (for example a 45° rotation stretches the element by sqrt(2))