PerspectiveFrustum
The viewing frustum is defined by 6 planes. Each plane is represented by a Cartesian4 object, where the x, y, and z components define the unit vector normal to the plane, and the w component is the distance of the plane from the origin/camera position.
const frustum = new PerspectiveFrustum({
fov : Math.PI_OVER_THREE,
aspectRatio : canvas.clientWidth / canvas.clientHeight
near : 1.0,
far : 1000.0
});
See also
Properties
The aspect ratio of the frustum's width to it's height.
The perspective projection matrix computed from the view frustum with an infinite far plane.
Gets the perspective projection matrix computed from the view frustum. If necessary, the projection matrix will be recomputed.
Functions
Returns a duplicate of a PerspectiveFrustum instance.
Creates a culling volume for this frustum.
Compares the provided PerspectiveFrustum componentwise and returns true
if they pass an absolute or relative tolerance test, false
otherwise.
Returns the pixel's width and height in meters.