EllipsoidRhumbLine

new Cesium.EllipsoidRhumbLine(start, end, ellipsoid)

Initializes a rhumb line on the ellipsoid connecting the two provided planetodetic points.
参数名称 类型 默认值 描述信息
start Cartographic 可选 The initial planetodetic point on the path.
end Cartographic 可选 The final planetodetic point on the path.
ellipsoid Ellipsoid Ellipsoid.WGS84 可选 The ellipsoid on which the rhumb line lies.
Throws:
  • DeveloperError : angle between start and end must be at least 0.0125 radians.

成员(属性)

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

方法

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

Create a rhumb line using an initial position with a heading and distance.
参数名称 类型 默认值 描述信息
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.WGS84 可选 The ellipsoid on which the rhumb line lies.
result EllipsoidRhumbLine 可选 The object in which to store the result.
返回值:
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.
参数名称 类型 描述信息
intersectionLatitude number The latitude, in radians, at which to find the intersection point from the starting point using the heading.
result Cartographic 可选 The object in which to store the result.
返回值:
The location of the intersection point along the rhumb line, undefined if there is no intersection or infinite intersections.
Throws:
  • DeveloperError : 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.
参数名称 类型 描述信息
intersectionLongitude number The longitude, in radians, at which to find the intersection point from the starting point using the heading.
result Cartographic 可选 The object in which to store the result.
返回值:
The location of the intersection point along the rhumb line, undefined if there is no intersection or infinite intersections.
Throws:
  • DeveloperError : 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.
参数名称 类型 描述信息
fraction number The portion of the distance between the initial and final points.
result Cartographic 可选 The object in which to store the result.
返回值:
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.
参数名称 类型 描述信息
distance number The distance from the inital point to the point of interest along the rhumbLine.
result Cartographic 可选 The object in which to store the result.
返回值:
The location of the point along the rhumb line.
Throws:
  • DeveloperError : start and end must be set before calling function interpolateUsingSurfaceDistance
Sets the start and end points of the rhumb line.
参数名称 类型 描述信息
start Cartographic The initial planetodetic point on the path.
end Cartographic The final planetodetic point on the path.