Skip to content

@ue-too/board / rotationWithinBoundary

Function: rotationWithinBoundary()

rotationWithinBoundary(rotation, rotationBoundary): boolean

Defined in: packages/board/src/camera/utils/rotation.ts:180

Checks if a rotation angle is within an experimental rotation boundary.

Parameters

rotation

number

The rotation angle to check in radians

rotationBoundary

RotationBoundary

Rotation boundary with positive/negative direction

Returns

boolean

True if rotation is within the boundary range, false otherwise

Remarks

This is an experimental alternative to rotationWithinLimits using positive/negative direction semantics instead of ccw/cw.