EllipsoidRhumbLine

open external class EllipsoidRhumbLine(val start: Cartographic = definedExternally, val end: Cartographic = definedExternally, val ellipsoid: Ellipsoid = definedExternally)(source)

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

See also

Constructors

Link copied to clipboard
constructor(start: Cartographic = definedExternally, end: Cartographic = definedExternally, ellipsoid: Ellipsoid = definedExternally)

Types

Link copied to clipboard
external object Companion

Properties

Link copied to clipboard
external val ellipsoid: Ellipsoid

The ellipsoid on which the rhumb line lies. Default value - Ellipsoid.default

Link copied to clipboard
external val end: Cartographic

The final planetodetic point on the path.

Link copied to clipboard
external val heading: Double

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

Link copied to clipboard
external val start: Cartographic

The initial planetodetic point on the path.

Link copied to clipboard
external val surfaceDistance: Double

Gets the surface distance between the start and end point

Functions

Link copied to clipboard
external fun findIntersectionWithLatitude(intersectionLatitude: Double, result: Cartographic? = definedExternally): 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.

Link copied to clipboard
external fun findIntersectionWithLongitude(intersectionLongitude: Double, result: Cartographic? = definedExternally): 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.

Link copied to clipboard
external fun interpolateUsingFraction(fraction: Double, result: Cartographic? = definedExternally): Cartographic

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

Link copied to clipboard
external fun interpolateUsingSurfaceDistance(distance: Double, result: Cartographic? = definedExternally): Cartographic

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

Link copied to clipboard
external fun setEndPoints(start: Cartographic, end: Cartographic)

Sets the start and end points of the rhumb line.