Segment

open class Segment(val p1: Coordinate, val p2: Coordinate)

A straight segment between two coordinates.

Inheritors

Constructors

Link copied to clipboard
constructor(p1: Coordinate, p2: Coordinate)

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 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.

Functions

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