LegSegment

class LegSegment(p1: Coordinate, p2: Coordinate, val levelDifference: Float? = null, val stepKind: Step.Kind? = null, val stepDirection: Step.Direction? = null) : Segment

A Segment belonging to a navigation leg, carrying step-related metadata.

Constructors

Link copied to clipboard
constructor(p1: Coordinate, p2: Coordinate, levelDifference: Float? = null, stepKind: Step.Kind? = null, stepDirection: Step.Direction? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Finds the geographic bearing between p1.point and p2.point.

Link copied to clipboard

The coordinates of the segment, i.e. [p1, p2].

Link copied to clipboard

The 2D distance, in meters, between p1 and p2.

Link copied to clipboard

The difference in levels between p1 and p2, if any.

Link copied to clipboard

The union of the levels of p1 and p2.

Link copied to clipboard

The first coordinate of the segment.

Link copied to clipboard

The second coordinate of the segment.

Link copied to clipboard

The direction of the step this segment belongs to, if any.

Link copied to clipboard

The kind of step this segment belongs to, if any.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun project(coordinate: Coordinate): Coordinate?
Link copied to clipboard
open override fun toString(): String