API

Class Frustum

Represents a camera frustum

Index
  • Gets the frustum plane for the lower clip-space Z bound, which is the near plane in standard Z and the far plane in reversed Z.

    Parameters

    • transform: DeepImmutable<Matrix>

      transformation matrix to be applied to the resulting frustum plane

    • frustumPlane: Plane

      the resulting frustum plane

    • halfZRange: boolean = false

      whether the transform uses an NDC depth range of [0, 1] (default: false)

    Returns void

  • Sets the given array "frustumPlanes" with the 6 Frustum planes computed by the given transformation matrix.

    Parameters

    • transform: DeepImmutable<Matrix>

      transformation matrix to be applied to the resulting frustum planes

    • frustumPlanes: Plane[]

      the resulting frustum planes

    • halfZRange: boolean = false

      whether the transform uses an NDC depth range of [0, 1] (default: false)

    Returns void