Skip to content

Function: yaw() ​

ts
function yaw(first: Readonly<Vector>, second: Readonly<Vector>): number;

Calculate the yaw angle between two vectors on the XZ plane.

Parameters ​

ParameterTypeDescription
firstReadonly<Vector>First vector.
secondReadonly<Vector>Second vector.

Returns ​

number

Angle in radians.