GeometryUtility

csharp
public static class GeometryUtility

Namespace NodeWorld.Flux.

Planes of a camera's view (its frustum), as Unity's GeometryUtility.

Methods

CalculateFrustumPlanes

csharp
public static void CalculateFrustumPlanes(Matrix4x4 worldToProjectionMatrix, Plane[] planes)

The six planes of a frustum (left, right, bottom, top, near, far; normals inwards) from a world-to-clip matrix (projection * view, clip z from -w to w).

csharp
public static Plane[] CalculateFrustumPlanes(Matrix4x4 worldToProjectionMatrix)

The six planes of a frustum (left, right, bottom, top, near, far; normals inwards) from a world-to-clip matrix, in a new array.

TestPlanesAABB

csharp
public static bool TestPlanesAABB(Plane[] planes, Bounds bounds)

True if the box is inside the planes or crosses them (the usual conservative test).