Skip to main content

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

ParamTypeDescription
outputArray.<number> | Float32Arraywhere to write results to
output_offsetnumberwhere to start writing results
frustumArray.<number> | Float32Arraydefined 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_offsetnumberwhere to start reading from