Skip to contents

Matrix Frustum

Usage

matrix_frustum(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_frustum(0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
#>      [,1] [,2] [,3] [,4]
#> [1,]  NaN    0  NaN    0
#> [2,]    0  NaN  NaN    0
#> [3,]    0    0  NaN  NaN
#> [4,]    0    0   -1    0