Skip to main content

frustum_slice

Functions

Lerp between two planes of a frustum, opposing planes (x0,x1) or (y0,y1) or (z0,z1)

Carves out a slice of a frustum, given a normalized set of intervals [0,1] for each axis. Works with perspective and orthographic frustums. Input frustum is assumed to have planes in the following order [x0, x1, y0, y1, z0, z1]

frustum_plane_pair_lerp(output, output_offset, input, plane_min_offset, plane_max_offset, section0, section1)

Lerp between two planes of a frustum, opposing planes (x0,x1) or (y0,y1) or (z0,z1)

Kind: global function

ParamType
outputArray.<number>
output_offsetnumber
inputArray.<number>
plane_min_offsetnumber
plane_max_offsetnumber
section0number
section1number

frustum_slice(output, output_offset, frustum, x0, y0, z0, x1, y1, z1)

Carves out a slice of a frustum, given a normalized set of intervals [0,1] for each axis. Works with perspective and orthographic frustums. Input frustum is assumed to have planes in the following order [x0, x1, y0, y1, z0, z1]

Kind: global function

ParamType
outputArray.<number> | Float32Array
output_offsetnumber
frustumArray.<number> | Float32Array
x0number
y0number
z0number
x1number
y1number
z1number