rotate

fun rotate(axis: Cartesian3, angle: Double? = definedExternally)(source)

Rotates the camera around axis by angle. The distance of the camera's position to the center of the camera's reference frame remains the same.

Parameters

axis

The axis to rotate around given in world coordinates.

angle

The angle, in radians, to rotate by. Defaults to defaultRotateAmount.

See also