Skip to main content

Function: faceViewer()

function faceViewer(position: Vec3Tuple, viewer: Vec3Tuple): QuatTuple;

Defined in: webxr-uiextensions/src/core/hand-menu.ts:217

Orientation whose local +Z (the face of a panel) points from position to viewer, upright against world +Y. Straight above or below the viewer there is no upright, so world +Z stands in for "up" there.

Parameters

ParameterType
positionVec3Tuple
viewerVec3Tuple

Returns

QuatTuple