frustum_compute_corners
frustum_compute_corners(output, output_offset, frustum, frustum_offset)
This function operates in 3D. Write 8 frustum corners out into the output. Assumes frustum is convex and has no parallel planes except those in the same axis.
Kind: global function
| Param | Type | Description |
|---|---|---|
| output | Array.<number> | Float32Array | where to write results to |
| output_offset | number | where to start writing results |
| frustum | Array.<number> | Float32Array | defined as [plane_normal_x, plane_normal_y, plane_normal_z, plane_offset], planes should be in the following order [x0, x1, y0, y1, z0, z1] |
| frustum_offset | number | where to start reading from |