☰
RailwayEdge
Trait Implementations
RailwayEdgeAlgos
In openrailwaymap_exporter::railway_model
?
Type Definition
openrailwaymap_exporter
::
railway_model
::
RailwayEdge
source
·
[
−
]
pub type RailwayEdge = TransitEdge<
f64
>;
Expand description
A railway edge.
Trait Implementations
§
source
§
impl
RailwayEdgeAlgos
for
RailwayEdge
source
§
fn
distance_to_end
( &self, current_location: Coord<
f64
>, direction_coord: Coord<
f64
> ) -> Length
Calculates the distance between the current location and the last coordinate in the linestring.
Read more
source
§
fn
position_on_edge
( &self, current_location: Coord<
f64
>, distance_to_travel: Length, direction_coord: Coord<
f64
> ) -> Coord<
f64
>
Calculates a new position on the edge based on the given parameters.
Read more