Package limn.math

Class Frustum

java.lang.Object
limn.math.Frustum

public final class Frustum extends Object
The six clip planes of a view-projection, for frustum culling. Extracted with the Gribb-Hartmann method; each plane's normal points inward, so a point is inside when n·p + d ≥ 0 for all six. The AABB test is conservative: it never culls something visible, but may keep something just outside a corner.
  • Method Details

    • fromViewProjection

      public static Frustum fromViewProjection(Mat4 vp)
      Builds the frustum from a view-projection matrix (clip z ∈ [-1, 1]).
    • intersects

      public boolean intersects(Aabb box)
      Returns:
      false only when box lies fully outside the frustum. Allocation-free: it runs once per mesh per frame during culling.