English中文

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

提供沿测地线指定部分处的点的位置。 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.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.