@JsType(isNative=true, namespace="Cesium", name="ClippingPlane") public class ClippingPlane extends Plane
ClippingPlaneCollection
.
Compatible with mathematics functions in Plane
Modifier and Type | Field and Description |
---|---|
double |
distance
The shortest distance from the origin to the plane.
|
Cartesian3 |
normal
The plane's normal.
|
Constructor and Description |
---|
ClippingPlane(Cartesian3 normal,
double distance)
A plane in Hessian Normal Form defined by
ax + by + cz + d = 0
where (a, b, c) is the plane's normal, d is the signed distance to the plane, and (x, y, z) is any point on the plane.
|
Modifier and Type | Method and Description |
---|---|
static ClippingPlane |
clone(ClippingPlane clippingPlane)
Clones the ClippingPlane without setting its ownership.
|
static ClippingPlane |
clone(ClippingPlane clippingPlane,
ClippingPlane result)
Clones the ClippingPlane without setting its ownership.
|
static ClippingPlane |
fromPlane(Plane plane)
Create a ClippingPlane from a Plane object.
|
static ClippingPlane |
fromPlane(Plane plane,
ClippingPlane result)
Create a ClippingPlane from a Plane object.
|
clone, clone, equals, fromCartesian4, fromCartesian4, fromPointNormal, fromPointNormal, getPointDistance, ORIGIN_XY_PLANE, ORIGIN_YZ_PLANE, ORIGIN_ZX_PLANE, projectPointOntoPlane, projectPointOntoPlane, transform, transform
@JsProperty public double distance
@JsProperty public Cartesian3 normal
public ClippingPlane(Cartesian3 normal, double distance)
ax + by + cz + d = 0
where (a, b, c) is the plane's normal, d is the signed distance to the plane, and (x, y, z) is any point on the plane.
normal
- The plane's normal (normalized).distance
- The shortest distance from the origin to the plane. The sign of distance determines which side
of the plane the origin is on. If distance is positive, the origin is in the half-space in the
direction of the normal; if negative, the origin is in the half-space opposite to the normal;@JsMethod public static ClippingPlane clone(ClippingPlane clippingPlane)
clippingPlane
- The ClippingPlane to be cloned@JsMethod public static ClippingPlane clone(ClippingPlane clippingPlane, ClippingPlane result)
clippingPlane
- The ClippingPlane to be clonedresult
- The object on which to store the cloned parameters.@JsMethod public static ClippingPlane fromPlane(Plane plane)
plane
- The plane containing parameters to copy@JsMethod public static ClippingPlane fromPlane(Plane plane, ClippingPlane result)
plane
- The plane containing parameters to copyresult
- The object on which to store the resultCopyright © 2019. All rights reserved.