OrthographicFrustum
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 OrthographicFrustum();
frustum.near = 0.01 * maxRadii;
frustum.far = 50.0 * maxRadii;
Content copied to clipboard
See also
Properties
Functions
Link copied to clipboard
Returns a duplicate of a OrthographicFrustum instance.
Link copied to clipboard
fun computeCullingVolume(position: Cartesian3, direction: Cartesian3, up: Cartesian3): CullingVolume
Creates a culling volume for this frustum.
Link copied to clipboard
fun equalsEpsilon(other: OrthographicFrustum, relativeEpsilon: Double, absoluteEpsilon: Double? = definedExternally): Boolean
Compares the provided OrthographicFrustum 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.