EllipsoidTangentPlane

new Cesium.EllipsoidTangentPlane(origin, ellipsoid)

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

Members

获取椭球。
获取原点。
获取与椭球面相切的平面。
获取切平面的本地X轴(东)。
获取切平面的本地Y轴(北)。

Methods

staticCesium.EllipsoidTangentPlane.fromPoints(cartesians, ellipsoid)

从提供的椭球和提供的笛卡尔坐标的中心点创建一个新实例。
Name Type Default Description
cartesians Cartesian3 围绕中心点的位置列表。
ellipsoid Ellipsoid Ellipsoid.WGS84 optional 要使用的椭球体。

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实例。如果没有交点,则为未定义。

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平面上的投影(在可能的情况下),从全局(global)原点向外辐射。 结果数组可能比输入数组更短——如果一个单独的投影是不可能的,它将不包括在内。
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实例数组。
See:
  • EllipsoidTangentPlane.projectPointToNearestOnPlane

projectPointToNearestOnPlane(cartesian, result)Cartesian2

计算所提供的三维位置在二维平面上沿平面法线的投影。
Name Type Description
cartesian Cartesian3 要投影的点。
result Cartesian2 optional 存储结果的对象。
Returns:
修改后的结果参数,如果没有提供则创建新的Cartesian2实例。