Matrix4x4.orthographic()
Build an orthographic projection matrix
Parameters
Name | Type | Description | |
---|---|---|---|
1 | left | number | |
2 | right | number | |
3 | top | number | |
4 | bottom | number | |
5 | near | number | |
6 | far | number |
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);