Skip to content

KBE3D / KBCore / Cesium / EllipsoidRhumbLine

类: EllipsoidRhumbLine

Initializes a rhumb line on the ellipsoid connecting the two provided planetodetic points.

参数

The initial planetodetic point on the path.

参数

The final planetodetic point on the path.

参数

The ellipsoid on which the rhumb line lies.

属性

ellipsoid

readonly ellipsoid: Ellipsoid

Gets the ellipsoid.


surfaceDistance

readonly surfaceDistance: number

Gets the surface distance between the start and end point


start

readonly start: Cartographic

Gets the initial planetodetic point on the path.


end

readonly end: Cartographic

Gets the final planetodetic point on the path.


heading

readonly heading: number

Gets the heading from the start point to the end point.

方法

fromStartHeadingDistance()

static fromStartHeadingDistance(start: Cartographic, heading: number, distance: number, ellipsoid?: Ellipsoid, result?: EllipsoidRhumbLine): 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

The ellipsoid on which the rhumb line lies.

result?

EllipsoidRhumbLine

The object in which to store the result.

返回

EllipsoidRhumbLine

The EllipsoidRhumbLine object.


setEndPoints()

setEndPoints(start: Cartographic, end: Cartographic): void

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.

返回

void


interpolateUsingFraction()

interpolateUsingFraction(fraction: number, result?: Cartographic): 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.

返回

Cartographic

The location of the point along the rhumb line.


interpolateUsingSurfaceDistance()

interpolateUsingSurfaceDistance(distance: number, result?: Cartographic): Cartographic

Provides the location of a point at the indicated distance along the rhumb line.

参数

distance

number

The distance from the initial point to the point of interest along the rhumbLine.

result?

Cartographic

The object in which to store the result.

返回

Cartographic

The location of the point along the rhumb line.


findIntersectionWithLongitude()

findIntersectionWithLongitude(intersectionLongitude: number, result?: Cartographic): 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.

返回

Cartographic

The location of the intersection point along the rhumb line, undefined if there is no intersection or infinite intersections.


findIntersectionWithLatitude()

findIntersectionWithLatitude(intersectionLatitude: number, result?: Cartographic): 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.

返回

Cartographic

The location of the intersection point along the rhumb line, undefined if there is no intersection or infinite intersections.

构造函数

构造函数

new EllipsoidRhumbLine(start?: Cartographic, end?: Cartographic, ellipsoid?: Ellipsoid): EllipsoidRhumbLine

参数

start?

Cartographic

end?

Cartographic

ellipsoid?

Ellipsoid

返回

EllipsoidRhumbLine

KBE3D @3.0.0 Copyright © 2024-present KBE3D