GeoLineSegment

data class GeoLineSegment(val begin: GeoPoint, val end: GeoPoint)

Implementation of a line segment that represents a line between the two geographic coordinates.

Parameters

begin

The beginning of the line segment.

end

The end of the line segment.

Constructors

Link copied to clipboard
constructor(begin: GeoPoint, end: GeoPoint)

Properties

Link copied to clipboard

Calculates the angle (bearing) of the line segment.

Link copied to clipboard
Link copied to clipboard

Provides the geographic distance spanned by this segment.

Link copied to clipboard

Functions

Link copied to clipboard
fun fraction(distance: Distance): Double

Returns the fraction of the line segment based on the specified distance in meters.

Link copied to clipboard

Returns a GeoPoint between the begin and the end properties, within the specified distance from the beginning of this segment.