@JsType(isNative=true, namespace="Cesium", name="OrthographicFrustum") public class OrthographicFrustum extends Frustum
Constructor and Description |
---|
OrthographicFrustum()
The viewing frustum is defined by 6 planes.
|
Modifier and Type | Method and Description |
---|---|
OrthographicFrustum |
clone()
OrthographicFrustum
|
OrthographicFrustum |
clone(OrthographicFrustum result)
OrthographicFrustum
|
CullingVolume |
computeCullingVolume(Cartesian3 position,
Cartesian3 direction,
Cartesian3 up)
Creates a culling volume for this frustum.
|
boolean |
equals(OrthographicFrustum other)
Compares the provided OrthographicFrustum componentwise and returns true if they are equal, false otherwise.
|
boolean |
equalsEpsilon(OrthographicFrustum other,
double relativeEpsilon)
Compares the provided OrthographicFrustum componentwise and returns true if they pass an absolute or relative
tolerance test, false otherwise.
|
boolean |
equalsEpsilon(OrthographicFrustum other,
double relativeEpsilon,
double absoluteEpsilon)
Compares the provided OrthographicFrustum componentwise and returns true if they pass an absolute or relative
tolerance test, false otherwise.
|
Cartesian2 |
getPixelDimensions(double drawingBufferWidth,
double drawingBufferHeight,
double distance,
Cartesian2 result)
Returns the pixel's width and height in meters.
|
projectionMatrix
@JsConstructor public OrthographicFrustum()
@JsMethod public OrthographicFrustum clone()
@JsMethod public OrthographicFrustum clone(OrthographicFrustum result)
result
- The object onto which to store the result.@JsMethod public CullingVolume computeCullingVolume(Cartesian3 position, Cartesian3 direction, Cartesian3 up)
position
- The eye position.direction
- The view direction.up
- The up direction.@JsMethod public boolean equals(OrthographicFrustum other)
other
- The right hand side OrthographicFrustum.@JsMethod public boolean equalsEpsilon(OrthographicFrustum other, double relativeEpsilon)
other
- The right hand side OrthographicFrustum.relativeEpsilon
- The relative epsilon tolerance to use for equality testing.@JsMethod public boolean equalsEpsilon(OrthographicFrustum other, double relativeEpsilon, double absoluteEpsilon)
other
- The right hand side OrthographicFrustum.relativeEpsilon
- The relative epsilon tolerance to use for equality testing.absoluteEpsilon
- The absolute epsilon tolerance to use for equality testing.@JsMethod public Cartesian2 getPixelDimensions(double drawingBufferWidth, double drawingBufferHeight, double distance, Cartesian2 result)
drawingBufferWidth
- The width of the drawing buffer.drawingBufferHeight
- The height of the drawing buffer.distance
- The distance to the near plane in meters.result
- The object onto which to store the result.Copyright © 2019. All rights reserved.