onBall

function onBall
navball.ts:164
onBall(local: Quat, direction: Vec3) → { depth: number; x: number; y: number }

Where a direction lands on the instrument's face.

direction is in the same axes as local was measured in, and the result is in the hull's: x runs to starboard and y up the panel, both −1..1 across the ball, and depth is how far toward the viewer the point sits — positive on the face the nose looks at, negative round the back, where it is not drawn. A direction along the nose lands dead center at depth 1, which is what puts the level mark under the horizon a hull is flying on.

localQuat
Undocumented
directionVec3
Undocumented
Returns{ depth: number; x: number; y: number }