Package limn.math
Class Frustum
java.lang.Object
limn.math.Frustum
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 Summary
Modifier and TypeMethodDescriptionstatic FrustumBuilds the frustum from a view-projection matrix (clip z ∈ [-1, 1]).booleanintersects(Aabb box)
-
Method Details
-
fromViewProjection
Builds the frustum from a view-projection matrix (clip z ∈ [-1, 1]). -
intersects
- Returns:
- false only when
boxlies fully outside the frustum. Allocation-free: it runs once per mesh per frame during culling.
-