Skip to content

galavi / computeForward

Function: computeForward()

computeForward(yaw, pitch): Vec3

Defined in: utils/spherical.ts:61

Compute forward direction from yaw and pitch

Parameters

yaw

number

pitch

number

Returns

Vec3

Released under the GPL-3.0 License.