EllipsoidGeodesic

new Cesium.EllipsoidGeodesic(start, end, ellipsoid)

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

Gets the ellipsoid.
Gets the final planetodetic point on the path.

readonly endHeading : number

Gets the heading at the final point.
Gets the initial planetodetic point on the path.

readonly startHeading : number

Gets the heading at the initial point.

readonly surfaceDistance : number

Gets the surface distance between the start and end point

Methods

interpolateUsingFraction(fraction, result)Cartographic

提供沿测地线的指示部分的点的位置。
Name Type Description
fraction number 初始点和最终点之间的距离部分。
result Cartographic optional 存储结果的对象。
Returns:
沿测地线的点的位置。

interpolateUsingSurfaceDistance(distance, result)Cartographic

提供沿测地线的指示距离处的点的位置。
Name Type Description
distance number 沿测地线从初始点到感兴趣点的距离
result Cartographic optional 存储结果的对象。
Returns:
沿测地线的点的位置。
Throws:
  • DeveloperError : start and end must be set before calling function interpolateUsingSurfaceDistance
设置测地线的起点和终点
Name Type Description
start Cartographic 路径上的初始行星点。
end Cartographic 路径上的最后一个行星点。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.