Enumeration ViewFrustum

The ViewFrustum enumeration tells the position of the values when querying CameraManagerInterface.getFrustum.

The frustum values are used to compute the perspective projection of the virtual camera.

frustum illustration
The camera is composed of 6 planes : A near and far plane orthogonal to the camera at the distance respectively near and far. Up, Bottom, Right and Left planes go through the camera location and intersect the near plane forming 4 points (see the figure).
The coordinates of these 4 points can be expressed as :
Be P0 the bottom left point, P1 the bottom right point, P2 the top right point, P3 the top left point.
Be D the normalized directional vector of the camera, U the normalized Up vector of the camera, R the normalized right vector of the camera and L the camera location.
P0 = L + Dmin * D + Rmin * R + Umin * U
P1 = L + Dmin * D + Rmax * R + Umin * U
P2 = L + Dmin * D + Rmax * R + Umax * U
P3 = L + Dmin * D + Rmin * R + Umax * U

In cases of symmetrical frustum (usually the case) :
Rmin = -Rmax
Dmin = -Dmax.
/** 
* Sample to illustrate some CameraManagerInterface frustum.
*/
import { CameraManagerInterface, ViewFrustum } from 'generated_files/documentation/appinfiniteapi';

// obtained previously
let lCameraManager : CameraManagerInterface;
// allocate space to get the frustum
const lFrustum : Float32Array = new Float32Array(ViewFrustum.VF_FRUSTUM_SIZE);
// get the distance to the near plane
const lNear : number = lCameraManager.getDMin();
// get the full frustum
lCameraManager.getFrustum(lFrustum);
// make sure value is correct :)
console.assert(lNear === lFrustum[ViewFrustum.VF_DMIN]);

There are a lot of online courses available if you want to get more information about orthographic and perspective projections.
3D Rendering

Enumeration Members

VF_DMAX: 1

Offset to get the distance from the camera to the far plane.

VF_DMIN: 0

Offset to get the distance from the camera to the near plane.

VF_FRUSTUM_SIZE: 6

Number of values "in" the frustum.

VF_INVALID: -1

Invalid frustum offset.

VF_RMAX: 5

Offset to get the "distance" to the right plane.

VF_RMIN: 4

Offset to get the "distance" to the left plane.

VF_UMAX: 3

Offset to get the "distance" to the up plane.

VF_UMIN: 2

Offset to get the "distance" to the down plane.