The left boundary of the viewing volume.
The right boundary of the viewing volume.
The bottom boundary of the viewing volume.
The top boundary of the viewing volume.
The distance to the near clipping plane.
The distance to the far clipping plane.
Optional
dest: FloatArrayParamAn optional destination matrix to store the result. If not provided, a new matrix is created.
The resulting 4x4 orthographic projection matrix. If dest
is provided, it will be modified; otherwise, a new matrix is returned.
Returns a 4x4 orthographic projection matrix based on the given left, right, bottom, top, near, and far planes.
This function creates an orthographic projection matrix, which maps 3D coordinates into a 2D plane while maintaining the relative sizes of objects, unlike a perspective projection. It's commonly used for 2D rendering or for parallel projections.