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
| Param | Type |
|---|---|
| output | Array.<number> |
| output_offset | number |
| input | Array.<number> |
| plane_min_offset | number |
| plane_max_offset | number |
| section0 | number |
| section1 | number |
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
| Param | Type |
|---|---|
| output | Array.<number> | Float32Array |
| output_offset | number |
| frustum | Array.<number> | Float32Array |
| x0 | number |
| y0 | number |
| z0 | number |
| x1 | number |
| y1 | number |
| z1 | number |