Skip to content

Function: vectorRotateY()

ts
function vectorRotateY(target: Readonly<Vector>, angleBase: number): vector;

Rotate a vector around the Y axis.

Not inlinable: reuses the computed cos / sin values, so it needs a statement body.

Parameters

ParameterTypeDescription
targetReadonly<Vector>Vector to rotate.
angleBasenumberRotation angle in degrees.

Returns

vector

New rotated vector.