Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / computeSpread

Function: computeSpread() ​

ts
function computeSpread(
   joints, 
   a, 
   b): number | null;

Defined in: xr/handPose.ts:288

Angular separation between two fingers. 0 = parallel, 1 = splayed wide.

Measured on metacarpal→tip direction, which stays meaningful even when the fingers are partly curled.

Parameters ​

ParameterType
jointsXrHandJoints
aXrFinger
bXrFinger

Returns ​

number | null