Skip to contents

Matrix Ortho

Usage

matrix_ortho(left, right, bottom, top, near_plane, far_plane)

Arguments

left

A number.

right

A number.

bottom

A number.

top

A number.

near_plane

A number.

far_plane

A number.

Value

A 4x4 numeric matrix

Examples

matrix_ortho(0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
#>      [,1] [,2] [,3] [,4]
#> [1,]  Inf    0    0  NaN
#> [2,]    0  Inf    0  NaN
#> [3,]    0    0 -Inf  NaN
#> [4,]    0    0    0    1