English中文

EllipsoidRhumbLine

new Cesium.EllipsoidRhumbLine(start, end, ellipsoid)

初始化椭球体上连接两个提供的行星测量点的恒向线。 Initializes a rhumb line 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 rhumb line lies.
抛出: Throws:
  • DeveloperError :起点和终点之间的角度必须至少为 0.0125 弧度。 : angle between start and end must be at least 0.0125 radians.

成员 Members

获取椭球体。 Gets the ellipsoid.
获取路径上的最终行星测量点。 Gets the final planetodetic point on the path.
获取从起点到终点的航向。 Gets the heading from the start point to the end point.
获取路径上的初始行星测量点。 Gets the initial planetodetic point on the path.

readonly surfaceDistance : number

获取起点和终点之间的表面距离 Gets the surface distance between the start and end point

方法 Methods

static Cesium.EllipsoidRhumbLine.fromStartHeadingDistance(start, heading, distance, ellipsoid, result)EllipsoidRhumbLine

使用具有航向和距离的初始位置创建恒向线。 Create a rhumb line using an initial position with a heading and distance.
名称 Name 类型 Type 默认值 Default 说明 Description
start Cartographic 路径上的初始行星测量点。 The initial planetodetic point on the path.
heading number 以弧度表示的标题。 The heading in radians.
distance number 起点和终点之间的恒向线距离。 The rhumb line distance between the start and end point.
ellipsoid Ellipsoid Ellipsoid.default 可选 optional 恒向线所在的椭球体。 The ellipsoid on which the rhumb line lies.
result EllipsoidRhumbLine 可选 optional 用于存储结果的对象。 The object in which to store the result.
返回: Returns:
EllipsoidRhumbLine 对象。 The EllipsoidRhumbLine object.

findIntersectionWithLatitude(intersectionLatitude, result)Cartographic

提供沿恒向线指定纬度处的点的位置。如果纬度超出起点和终点的范围,则返回从起点到航向方向的第一个与纬度的交点。这遵循恒向线的螺旋特性。 Provides the location of a point at the indicated latitude along the rhumb line. If the latitude is outside the range of start and end points, the first intersection with the latitude from that start point in the direction of the heading is returned. This follows the spiral property of a rhumb line.
名称 Name 类型 Type 说明 Description
intersectionLatitude number 使用航向查找与起点的交点的纬度(以弧度为单位)。 The latitude, in radians, at which to find the intersection point from the starting point using the heading.
result Cartographic 可选 optional 用于存储结果的对象。 The object in which to store the result.
返回: Returns:
沿恒向线交点的位置,如果没有交点或无限交点,则未定义。 The location of the intersection point along the rhumb line, undefined if there is no intersection or infinite intersections.
抛出: Throws:
  • DeveloperError :在调用函数 findIntersectionWithLongitude 之前必须设置 start 和 end。 : start and end must be set before calling function findIntersectionWithLongitude.

findIntersectionWithLongitude(intersectionLongitude, result)Cartographic

提供沿恒向线指定经度处的点的位置。如果经度在起点和终点范围之外,则返回从起点到航向方向的第一个与经度的交点。这遵循恒向线的螺旋特性。 Provides the location of a point at the indicated longitude along the rhumb line. If the longitude is outside the range of start and end points, the first intersection with the longitude from the start point in the direction of the heading is returned. This follows the spiral property of a rhumb line.
名称 Name 类型 Type 说明 Description
intersectionLongitude number 使用航向查找与起点的交点的经度(以弧度为单位)。 The longitude, in radians, at which to find the intersection point from the starting point using the heading.
result Cartographic 可选 optional 用于存储结果的对象。 The object in which to store the result.
返回: Returns:
沿恒向线交点的位置,如果没有交点或无限交点,则未定义。 The location of the intersection point along the rhumb line, undefined if there is no intersection or infinite intersections.
抛出: Throws:
  • DeveloperError :在调用函数 findIntersectionWithLongitude 之前必须设置 start 和 end。 : start and end must be set before calling function findIntersectionWithLongitude.

interpolateUsingFraction(fraction, result)Cartographic

提供沿恒向线指定部分处的点的位置。 Provides the location of a point at the indicated portion along the rhumb line.
名称 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 rhumb line.

interpolateUsingSurfaceDistance(distance, result)Cartographic

提供沿恒向线指定距离处的点的位置。 Provides the location of a point at the indicated distance along the rhumb line.
名称 Name 类型 Type 说明 Description
distance number 沿恒线从初始点到兴趣点的距离。 The distance from the initial point to the point of interest along the rhumbLine.
result Cartographic 可选 optional 用于存储结果的对象。 The object in which to store the result.
返回: Returns:
沿恒向线的点的位置。 The location of the point along the rhumb line.
抛出: Throws:
  • DeveloperError :在调用函数 interpolateUsingSurfaceDistance 之前必须设置 start 和 end : start and end must be set before calling function interpolateUsingSurfaceDistance
设置恒向线的起点和终点。 Sets the start and end points of the rhumb line.
名称 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.