Function: hingeAngleToHand()
function hingeAngleToHand(
alongRest: number,
alongSwing: number,
maxMag: number
): number;
Defined in: packages/webxr-interactions/src/math.ts:91
Hinge angle for a position-driven lever: given the hand's offset from the
pivot resolved into the hinge plane - alongRest (toward the arm's rest
direction) and alongSwing (the in-plane perpendicular) - the angle the
arm should take to point at the hand, clamped to ±|maxMag|.
Parameters
| Parameter | Type |
|---|---|
alongRest | number |
alongSwing | number |
maxMag | number |
Returns
number