Segment

class Segment(val start: RoutePoint, val end: RoutePoint)

Represents a line between two RoutePoint.

Parameters

start

The starting RoutePoint of the line segment.

end

The end RoutePoint of the line segment.

Constructors

Link copied to clipboard
constructor(start: RoutePoint, end: RoutePoint)

Properties

Link copied to clipboard
Link copied to clipboard

The length of this segment.

Link copied to clipboard

The offset of this segment from the start of the route.

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun intermediatePoint(distanceAlongSegment: Distance): GeoPoint

Calculates intermediate point of segment.

Link copied to clipboard
open override fun toString(): String