Method IsVisible
IsVisible(Plane[], Matrix4x4)
Check if a volume is visible by a camera
public static bool IsVisible(Plane[] planes, Matrix4x4 localToWorldMatrix)
Parameters
planes
Plane[]The camera's frustum planes
localToWorldMatrix
Matrix4x4The volume's transfromation matrix
Returns
IsVisible(Plane[], Vector3[])
Check if a volume is visible by a camera
public static bool IsVisible(Plane[] planes, Vector3[] pointsWS)
Parameters
planes
Plane[]The camera's frustum planes
pointsWS
Vector3[]The 8 corners of the volume