EllipsoidTangentPlane

new Cesium.EllipsoidTangentPlane(origin, ellipsoid)

在给定原点处与提供的椭球相切的平面。 如果原点不在椭球表面,将使用其表面投影。 如果原点在椭球中心,将抛出异常。
Name Type Default Description
origin Cartesian3 切平面与椭球表面接触的椭球面上的点。
ellipsoid Ellipsoid Ellipsoid.default optional 要使用的椭球。
Throws:

Members

获取椭球。
获取原点。
获取与椭球相切的平面。
获取切平面的局部X轴(东)。
获取切平面的局部Y轴(北)。
获取切平面的局部Z轴(上)。

Methods

static Cesium.EllipsoidTangentPlane.fromPoints(cartesians, ellipsoid)EllipsoidTangentPlane

从提供的椭球和提供的笛卡尔坐标的中心点创建新实例。
Name Type Default Description
cartesians Array.<Cartesian3> 围绕中心点的位置列表。
ellipsoid Ellipsoid Ellipsoid.default optional 要使用的椭球。
Returns:
新的EllipsoidTangentPlane实例。

projectPointOntoEllipsoid(cartesian, result)Cartesian3

计算提供的2D位置到3D椭球上的投影。
Name Type Description
cartesian Cartesian2 要投影的点。
result Cartesian3 optional 存储结果的Cartesian3实例。
Returns:
修改后的结果参数,如果未提供则返回新的Cartesian3实例。

projectPointOntoPlane(cartesian, result)Cartesian2

计算提供的3D位置到2D平面上的投影,沿EllipsoidTangentPlane.ellipsoid坐标系原点的径向向外。
Name Type Description
cartesian Cartesian3 要投影的点。
result Cartesian2 optional 存储结果的对象。
Returns:
修改后的结果参数,如果未提供则返回新的Cartesian2实例。若无交点则返回undefined。

projectPointsOntoEllipsoid(cartesians, result)Array.<Cartesian3>

计算提供的2D位置到3D椭球上的投影。
Name Type Description
cartesians Array.<Cartesian2> 要投影的点数组。
result Array.<Cartesian3> optional 存储结果的Cartesian3实例数组。
Returns:
修改后的结果参数,如果未提供则返回新的Cartesian3实例数组。

projectPointsOntoPlane(cartesians, result)Array.<Cartesian2>

计算提供的3D位置到2D平面上的投影(在可能的情况下),沿全局原点的径向向外。 结果数组可能比输入数组短——如果单个投影不可能,则不会包含在结果中。
Name Type Description
cartesians Array.<Cartesian3> 要投影的点数组。
result Array.<Cartesian2> optional 存储结果的Cartesian2实例数组。
Returns:
修改后的结果参数,如果未提供则返回新的Cartesian2实例数组。
See:
  • EllipsoidTangentPlane.projectPointOntoPlane

projectPointsToNearestOnPlane(cartesians, result)Array.<Cartesian2>

计算提供的3D位置沿平面法线到2D平面上的投影。
Name Type Description
cartesians Array.<Cartesian3> 要投影的点数组。
result Array.<Cartesian2> optional 存储结果的Cartesian2实例数组。
Returns:
修改后的结果参数,如果未提供则返回新的Cartesian2实例数组。长度与cartesians相同。
See:
  • EllipsoidTangentPlane.projectPointToNearestOnPlane

projectPointToNearestOnPlane(cartesian, result)Cartesian2

计算提供的3D位置沿平面法线到2D平面上的投影。
Name Type Description
cartesian Cartesian3 要投影的点。
result Cartesian2 optional 存储结果的对象。
Returns:
修改后的结果参数,如果未提供则返回新的Cartesian2实例。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.