Skip to main content

line_locate_point

Function line_locate_point 

Source
pub fn line_locate_point<L, P>(line: &L, point: &P) -> Option<f64>
Expand description

Return the fractional arc-length position nearest to point.

Returns None for an empty linestring and Some(0.0) for a single-point or zero-length linestring. Ties retain the earliest position along the line.