EllipsoidTangentPlane

new SuperMap3D.EllipsoidTangentPlane(origin, ellipsoid)

用于定义椭球体表面切平面类 基于原点(origin)和椭球体(ellipsoid)创建与椭球表面相切的平面。若原点不在椭球表面,自动投影至表面生成切平面‌
Name Type Default Description
origin Cartesian3 切平面接触椭球体的原点坐标(若原点不在表面,自动投影)‌
ellipsoid Ellipsoid Ellipsoid.WGS84 optional 关联的椭球体对象(默认 WGS84 椭球)‌
Throws:

Members

ellipsoid : Ellipsoid

获取椭球体。

origin : Cartesian3

获取原点。

readonlyplane : Plane

获取与椭球相切的平面。

readonlyxAxis : Cartesian3

获取切平面的局部 X 轴(东)。

readonlyyAxis : Cartesian3

获取切平面的局部 Y 轴(北)。

Methods

staticSuperMap3D.EllipsoidTangentPlane.fromPoints(ellipsoid, cartesians)

从提供的椭球体和提供的Cartesian坐标的中心点创建一个新实例。
Name Type Description
ellipsoid Ellipsoid 中心点周边的位置列表。
cartesians Cartesian3 要使用的椭球体。

projectPointOntoPlane(cartesian, result)Cartesian2

计算提供的三维位置在二维平面上的投影,从 EllipsoidTangentPlane.ellipsoid 坐标系原点径向向外。
Name Type Description
cartesian Cartesian3 投影点。
result Cartesian2 optional 存储结果的对象。
Returns:
如果未提供修改的结果参数或新的 Cartesian2 实例,如果没有交点,则未定义。

projectPointsOntoEllipsoid(cartesians, result)Array.<Cartesian3>

计算提供的二维位置在三维椭球上的投影。
Name Type Description
cartesians Array.<Cartesian2> 要投影的点数组。
result Array.<Cartesian3> optional 要存储结果的 Cartesian3 实例数组。
Returns:
修改后的结果参数或新的 Cartesian3 实例数组(如果未提供)。

projectPointsOntoPlane(cartesians, result)Array.<Cartesian2>

‌计算给定三维位置沿全局原点径向向外的二维平面投影(若可行)‌。 最终生成的数组可能短于输入数组——若单个投影无法实现,该位置将被排除‌
Name Type Description
cartesians Array.<Cartesian3> 要投影的点数组。
result Array.<Cartesian2> optional 要存储结果的 Cartesian2 实例数组。
Returns:
修改后的结果参数或 Cartesian2 实例的新数组(如果未提供)。
See:
  • EllipsoidTangentPlane.projectPointOntoPlane

projectPointsToNearestOnPlane(cartesians, result)Array.<Cartesian2>

计算提供的三维位置沿平面法线在二维平面上的投影。
Name Type Description
cartesians Array.<Cartesian3> 要投影的点数组。
result Array.<Cartesian2> optional 要存储结果的 Cartesian2 实例数组。
Returns:
修改后的结果参数或 Cartesian2 实例的新数组(如果未提供)。这将具有与 cartesians 相同的长度。
See:
  • EllipsoidTangentPlane.projectPointToNearestOnPlane

projectPointToNearestOnPlane(cartesian, result)Cartesian2

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