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
| Parameter | Type | Description |
|---|---|---|
target | Readonly<Vector> | Vector to rotate. |
angleBase | number | Rotation angle in degrees. |
Returns
vector
New rotated vector.