linearly v0.32.0Docs


linearly v0.32.0 / mat4 / orthoNO

Function: orthoNO()

orthoNO(left, right, bottom, top, near, far): mat4

Generates a orthogonal projection matrix with the given bounds. The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1], which matches WebGL/OpenGL’s clip volume.

Parameters

left: number

Left bound of the frustum

right: number

Right bound of the frustum

bottom: number

Bottom bound of the frustum

top: number

Top bound of the frustum

near: number

Near bound of the frustum

far: number

Far bound of the frustum

Returns

mat4

Defined in

src/mat4.ts:1220open in new window