Skip to main content

Function: faceViewerYaw()

function faceViewerYaw(
windowPosition: Vec3,
viewer: Vec3,
current: number
): number;

Defined in: webxr-uiextensions/src/core/drag-math.ts:58

Yaw (radians, three.js Y-up convention) that turns the window's -Z face toward viewer - the "PivotY" billboard used while dragging so a window never gets parked edge-on. Returns current when the viewer is directly above/below (degenerate on the Y axis).

Parameters

ParameterType
windowPositionVec3
viewerVec3
currentnumber

Returns

number