@JsType(isNative=true, namespace="Cesium", name="PerspectiveOffCenterFrustum") public class PerspectiveOffCenterFrustum extends Frustum
Modifier and Type | Field and Description |
---|---|
double |
bottom
Defines the bottom clipping plane.
|
double |
left
Defines the left clipping plane.
|
double |
right
Defines the right clipping plane.
|
double |
top
Defines the top clipping plane.
|
Constructor and Description |
---|
PerspectiveOffCenterFrustum()
The viewing frustum is defined by 6 planes.
|
Modifier and Type | Method and Description |
---|---|
PerspectiveOffCenterFrustum |
clone()
Returns a duplicate of a PerspectiveOffCenterFrustum instance.
|
PerspectiveOffCenterFrustum |
clone(PerspectiveOffCenterFrustum result)
Returns a duplicate of a PerspectiveOffCenterFrustum instance.
|
CullingVolume |
computeCullingVolume(Cartesian3 position,
Cartesian3 direction,
Cartesian3 up)
Creates a culling volume for this frustum.
|
boolean |
equals(PerspectiveOffCenterFrustum other)
Compares the provided PerspectiveOffCenterFrustum componentwise and returns true if they are equal, false otherwise.
|
boolean |
equalsEpsilon(PerspectiveOffCenterFrustum other,
double relativeEpsilon)
Compares the provided PerspectiveOffCenterFrustum componentwise and returns true if they pass an absolute or
relative tolerance test, false otherwise.
|
boolean |
equalsEpsilon(PerspectiveOffCenterFrustum other,
double relativeEpsilon,
double absoluteEpsilon)
Compares the provided PerspectiveOffCenterFrustum 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.
|
Matrix4 |
infiniteProjectionMatrix()
Gets the perspective projection matrix computed from the view frustum with an infinite far plane.
|
projectionMatrix
@JsProperty public double bottom
@JsProperty public double left
@JsProperty public double right
@JsProperty public double top
@JsConstructor public PerspectiveOffCenterFrustum()
PerspectiveFrustum
@JsProperty(name="infiniteProjectionMatrix") public Matrix4 infiniteProjectionMatrix()
Frustum.projectionMatrix()
@JsMethod public PerspectiveOffCenterFrustum clone()
@JsMethod public PerspectiveOffCenterFrustum clone(PerspectiveOffCenterFrustum 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(PerspectiveOffCenterFrustum other)
other
- The right hand side PerspectiveOffCenterFrustum.@JsMethod public boolean equalsEpsilon(PerspectiveOffCenterFrustum other, double relativeEpsilon)
other
- The right hand side PerspectiveOffCenterFrustum.relativeEpsilon
- The relative epsilon tolerance to use for equality testing.@JsMethod public boolean equalsEpsilon(PerspectiveOffCenterFrustum other, double relativeEpsilon, double absoluteEpsilon)
other
- The right hand side PerspectiveOffCenterFrustum.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.