Class Frustum
Methods
StaticGet Bottom Plane To Ref
-
Gets the bottom frustum plane transformed by the transform matrix
Parameters
- transform: DeepImmutable<Matrix>
transformation matrix to be applied to the resulting frustum plane
- frustumPlane: Plane
the resulting frustum plane
Returns void
- transform: DeepImmutable<Matrix>
StaticGet Far Plane To Ref
-
Gets the frustum plane for the upper clip-space Z bound, which is the far plane in standard Z and the near plane in reversed Z.
Parameters
- transform: DeepImmutable<Matrix>
transformation matrix to be applied to the resulting frustum plane
- frustumPlane: Plane
the resulting frustum plane
Returns void
- transform: DeepImmutable<Matrix>
StaticGet Left Plane To Ref
-
Gets the left frustum plane transformed by the transform matrix
Parameters
- transform: DeepImmutable<Matrix>
transformation matrix to be applied to the resulting frustum plane
- frustumPlane: Plane
the resulting frustum plane
Returns void
- transform: DeepImmutable<Matrix>
StaticGet Near Plane To Ref
-
GetNearPlaneToRef(
transform: DeepImmutable<Matrix>,
frustumPlane: Plane,
halfZRange?: boolean,
): voidGets 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
- transform: DeepImmutable<Matrix>
StaticGet Planes
-
Gets the planes representing the frustum
Parameters
- transform: DeepImmutable<Matrix>
matrix to be applied to the returned planes
- halfZRange: boolean = false
whether the transform uses an NDC depth range of [0, 1] (default: false)
Returns Plane[]
a new array of 6 Frustum planes computed by the given transformation matrix.
- transform: DeepImmutable<Matrix>
StaticGet Planes To Ref
-
GetPlanesToRef(
transform: DeepImmutable<Matrix>,
frustumPlanes: Plane[],
halfZRange?: boolean,
): voidSets 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
- transform: DeepImmutable<Matrix>
StaticGet Right Plane To Ref
-
Gets the right frustum plane transformed by the transform matrix
Parameters
- transform: DeepImmutable<Matrix>
transformation matrix to be applied to the resulting frustum plane
- frustumPlane: Plane
the resulting frustum plane
Returns void
- transform: DeepImmutable<Matrix>
StaticGet Top Plane To Ref
-
Gets the top frustum plane transformed by the transform matrix
Parameters
- transform: DeepImmutable<Matrix>
transformation matrix to be applied to the resulting frustum plane
- frustumPlane: Plane
the resulting frustum plane
Returns void
- transform: DeepImmutable<Matrix>
StaticIs Point In Frustum
-
Tests if a point is located between the frustum planes.
Parameters
- point: Vector3
defines the point to test
- frustumPlanes: DeepImmutableObject<Plane>[]
defines the frustum planes to test
Returns boolean
true if the point is located between the frustum planes
- point: Vector3
Represents a camera frustum