Module openrailwaymap_exporter::algorithms
source · Expand description
A module containing algorithms for working with geographical data structures.
Traits
- A trait that defines a method for calculating the distance between two points of the same type. Implementations are provided for
Coord<f64>
andPoint<f64>
.
Functions
- Returns the closest point of points in a given
LineString
to a givenCoord
. - Determines if the middle coordinate is between the start and end coordinates along both x and y axes.
- Returns the points in front of the current location in a given
LineString
.