new Cesium.Plane(normal, distance)

由 Hessian 正常形式定义的平面
ax + by + cz + d = 0
其中(a,b,c)是飞机的 NT 0 正态 NT 1 ,d是签名的 (X,y,z)是任何点 the plane.
Name Type Description
normal Cartesian3 飞机正常(正常).
distance number 从起源到飞机最短的距离. 标志 #NT##0 距离 NT###1 确定飞机的原产地是哪一边 开始 如果 NT 0 距离 NT 1 为正,则来源于半空格 ; 如果为负, 来源位于半空格 与正常相反;如果为零,则飞机通过原产地.
Throws:
Example:
// The plane x=0
const plane = new Cesium.Plane(Cesium.Cartesian3.UNIT_X, 0.0);

Members

static constant Cesium.Plane.ORIGIN_XY_PLANE : Plane

常初始化为XY飞机通过原产地,正常为正Z.

static constant Cesium.Plane.ORIGIN_YZ_PLANE : Plane

恒定初始化为YZ飞机通过原产地,正X中正常.

static constant Cesium.Plane.ORIGIN_ZX_PLANE : Plane

不断初始化为ZX飞机通过原产地,正常为正Y.

distance : number

从起源到飞机最短的距离. 标志 #NT##0 距离 NT###1 确定飞机的原产地是哪一边 开始 如果 NT 0 距离 NT 1 为正,则来源于半空格 ; 如果为负, 来源位于半空格 与正常相反;如果为零,则飞机通过原产地.

normal : Cartesian3

飞机正常.

Methods

static Cesium.Plane.clone(plane, result)Plane

复制一个 Plane 实例 .
Name Type Description
plane Plane 要重复的飞机.
result Plane optional 存储结果的对象 .
Returns:
未提供修改的结果参数或新 Plane 实例 .

static Cesium.Plane.equals(left, right)boolean

按正常和距离比较所提供的计划并返回 -NT+0+Treal NT+1+,如果两者是相等的, NT+2+false NT+3+否则.
Name Type Description
left Plane 第一架飞机.
right Plane 第二架飞机.
Returns:
如果左右对等, 则使用 NT 0 true NT 1 , 否则使用 NT 2 false NT 3 .

static Cesium.Plane.fromCartesian4(coefficients, result)Plane

从一般方程式创建平面
Name Type Description
coefficients Cartesian4 飞机正常(正常).
result Plane optional 存储结果的对象 .
Returns:
新平面实例或修改的结果参数 .
Throws:

static Cesium.Plane.fromPointNormal(point, normal, result)Plane

从平面正常和平面上的点创建一个平面.
Name Type Description
point Cartesian3 飞机上的点.
normal Cartesian3 飞机正常(正常).
result Plane optional 存储结果的对象 .
Returns:
新平面实例或修改的结果参数 .
Throws:
Example:
const point = Cesium.Cartesian3.fromDegrees(-72.0, 40.0);
const normal = ellipsoid.geodeticSurfaceNormal(point);
const tangentPlane = Cesium.Plane.fromPointNormal(point, normal);

static Cesium.Plane.getPointDistance(plane, point)number

计算一个点到平面的最短签名距离. 距离的标志决定了平面的哪一面的点 开始 如果距离是正的,则点在半空格中 ;如果是负,则点在半空格中 与正常相反;如果为零,则飞机通过点.
Name Type Description
plane Plane The plane.
point Cartesian3 The point.
Returns:
与飞机最短的距离.

static Cesium.Plane.projectPointOntoPlane(plane, point, result)Cartesian3

投射到飞机上.
Name Type Description
plane Plane 投射点的平面
point Cartesian3 投影到飞机上的点
result Cartesian3 optional 结果点。 如果未定义, 将创建新的 NT % 0 .
Returns:
未提供修改的结果参数或新的 NT% 0 实例 .

static Cesium.Plane.transform(plane, transform, result)Plane

NT 0 由给定的变换矩阵的平面.
Name Type Description
plane Plane The plane.
transform Matrix4 变形矩阵.
result Plane optional 存储结果的对象.
Returns:
平面由给定的变换矩阵改变.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.