rotate

fun rotate(rotationInDegrees: Double, target: TransformTarget = TransformTarget.MODEL)(source)

Applies a rotation over the z-axis to the model matrix

Parameters

rotationInDegrees

the rotation in degrees


fun rotate(axis: Vector3, rotationInDegrees: Double, target: TransformTarget = TransformTarget.MODEL)(source)

Applies a rotation over an arbitrary axis to the model matrix

Parameters

axis

the axis to rotate over, will be normalized

rotationInDegrees

the rotation in degrees