Skip to main content

Function: clampRotationToAngle()

clampRotationToAngle(rotation, angle): void

Defined in: src/utils/RotationUtils.ts:61

Clamps the provided rotation's angle. The rotation is modified in place.

Parameters​

rotation​

Quaternion

The quaternion to clamp.

angle​

number

The maximum allowed angle in radians.

Returns​

void