OrthographicOffCenterFrustum

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 maxRadii = ellipsoid.maximumRadius;

const frustum = new OrthographicOffCenterFrustum();
frustum.right = maxRadii * Math.PI;
frustum.left = -c.frustum.right;
frustum.top = c.frustum.right * (canvas.clientHeight / canvas.clientWidth);
frustum.bottom = -c.frustum.top;
frustum.near = 0.01 * maxRadii;
frustum.far = 50.0 * maxRadii;

See also

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The bottom clipping plane.

Link copied to clipboard
var far: Double

The distance of the far plane.

Link copied to clipboard
var left: Double?

The left clipping plane.

Link copied to clipboard

The distance of the near plane.

Link copied to clipboard

Gets the orthographic projection matrix computed from the view frustum.

Link copied to clipboard

The right clipping plane.

Link copied to clipboard
var top: Double?

The top clipping plane.

Functions

Link copied to clipboard

Returns a duplicate of a OrthographicOffCenterFrustum instance.

Link copied to clipboard

Creates a culling volume for this frustum.

Link copied to clipboard
fun equalsEpsilon(other: OrthographicOffCenterFrustum, relativeEpsilon: Double, absoluteEpsilon: Double? = definedExternally): Boolean

Compares the provided OrthographicOffCenterFrustum componentwise and returns true if they pass an absolute or relative tolerance test, false otherwise.

Link copied to clipboard
fun getPixelDimensions(drawingBufferWidth: Double, drawingBufferHeight: Double, distance: Double, pixelRatio: Double, result: Cartesian2): Cartesian2

Returns the pixel's width and height in meters.