frustum

 Function Name  Parameter  Return  Explain
 calc matrix  matView, matInvView, matProj
number  nVPWidth, nVPHeight
[ rect rect ]
None Calculates frustum.

Parameters

matView : view matrix
matInvView : inverse view matrix
matProj : projection matrix
nVPWidth : width of viewport
nVPHeight : height of viewport
rect : a rectangle in viewport, if absent, full viewport

 isBoxOutView bbox boolean Whether a box is whole out of frustum
 isBoxInView bbox boolean Whether a box is whole inside frustum
 isSphereOutView bsphere boolean Whether a sphere is whole out of frustum
 isSphereInView bsphere boolean Whether a sphere is whole inside frustum
 isPointOutView vec boolean Whether a point is out of frustum
 Lib Function  Parameter  Return  Explain
 new None frustum