getFrustum method

Frustum getFrustum(
  1. Size dimensions
)

Returns the view frustum (six normalized clip planes) for a render target of the given dimensions.

Built from getViewTransform using the standard Gribb-Hartmann extraction. Useful for Node.isVisibleTo queries and any other caller-driven culling.

Implementation

Frustum getFrustum(ui.Size dimensions) =>
    Frustum.matrix(getViewTransform(dimensions));