初始化连接两个提供的行星测量点的椭球体上的测地线。 Initializes a geodesic on the ellipsoid connecting the two provided planetodetic points.
| 名称 Name | 类型 Type | 默认值 Default | 说明 Description |
|---|---|---|---|
start |
Cartographic | 可选 optional 路径上的初始行星测量点。 The initial planetodetic point on the path. | |
end |
Cartographic | 可选 optional 路径上的最后一个行星测量点。 The final planetodetic point on the path. | |
ellipsoid |
Ellipsoid |
Ellipsoid.default
|
可选 optional 测地线所在的椭球体。 The ellipsoid on which the geodesic lies. |
成员 Members
readonly ellipsoid : Ellipsoid
获取椭球体。 Gets the ellipsoid.
readonly end : Cartographic
获取路径上的最终行星测量点。 Gets the final planetodetic point on the path.
获取最后一点的航向。 Gets the heading at the final point.
readonly start : Cartographic
获取路径上的初始行星测量点。 Gets the initial planetodetic point on the path.
获取初始点的航向。 Gets the heading at the initial point.
获取起点和终点之间的表面距离 Gets the surface distance between the start and end point
方法 Methods
interpolateUsingFraction(fraction, result) → Cartographic
提供沿测地线指定部分处的点的位置。 Provides the location of a point at the indicated portion along the geodesic.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
fraction |
number | 起始点和终止点之间的距离部分。 The portion of the distance between the initial and final points. |
result |
Cartographic | 可选 optional 用于存储结果的对象。 The object in which to store the result. |
返回: Returns:
沿测地线的点的位置。 The location of the point along the geodesic.
interpolateUsingSurfaceDistance(distance, result) → Cartographic
提供沿测地线指定距离处的点的位置。 Provides the location of a point at the indicated distance along the geodesic.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
distance |
number | 沿测地线从初始点到感兴趣点的距离 The distance from the initial point to the point of interest along the geodesic |
result |
Cartographic | 可选 optional 用于存储结果的对象。 The object in which to store the result. |
返回: Returns:
沿测地线的点的位置。 The location of the point along the geodesic.
抛出: Throws:
-
DeveloperError :在调用函数 interpolateUsingSurfaceDistance 之前必须设置 start 和 end : start and end must be set before calling function interpolateUsingSurfaceDistance
设置测地线的起点和终点 Sets the start and end points of the geodesic
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
start |
Cartographic | 路径上的初始行星测量点。 The initial planetodetic point on the path. |
end |
Cartographic | 路径上的最后一个行星测量点。 The final planetodetic point on the path. |
