Skip to content

Function: angleToDirection() ​

ts
function angleToDirection(angle: Readonly<Vector>): vector;

Convert an angle vector to a normalized direction vector.

Parameters ​

ParameterTypeDescription
angleReadonly<Vector>Angle vector where x is pitch and y is yaw.

Returns ​

vector

Normalized direction vector.