Matrix4x4.orthographic()

Build an orthographic projection matrix

Parameters

NameTypeDescription
1leftnumber
2rightnumber
3topnumber
4bottomnumber
5nearnumber
6farnumber

Return value

Matrix4x4

the Matrix4x4 with its new values

Usage

import {Matrix4x4} from '@lcluber/type6js';

let left = -1.0;
let right = 1.0; 
let top = -1.0;
let bottom= 1.0;
let near = 0.1;
let far = 100; 
let orthographicMatrix = Matrix4x4.orthographic(left, right, top, bottom, near, far);