Skip to content

@ue-too/board / index / rotationWithinBoundary

関数: rotationWithinBoundary() ​

rotationWithinBoundary(rotation, rotationBoundary): boolean

定義: packages/board/src/camera/utils/rotation.ts:179

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

パラメータ ​

rotation ​

number

The rotation angle to check in radians

rotationBoundary ​

RotationBoundary

Rotation boundary with positive/negative direction

戻り値 ​

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.