MCPcopy Create free account
hub / github.com/melonjs/melonJS / getForward

Method getForward

packages/melonjs/src/camera/camera3d.ts:298–301  ·  view source on GitHub ↗

* The camera's world-space forward / look axis (unit). See * Camera3d#getBasis. * @param out - vector to write into (returned) * @returns `out`

(out: Vector3d)

Source from the content-addressed store, hash-verified

296 * @returns `out`
297 */
298 getForward(out: Vector3d): Vector3d {
299 this.getBasis(_bScratchA, _bScratchB, out);
300 return out;
301 }
302
303 /**
304 * Rebuild the projection matrix from the frustum. Called by the

Callers 1

sprite3d.spec.jsFile · 0.80

Calls 1

getBasisMethod · 0.95

Tested by

no test coverage detected