Skip to main content

line_interpolate

Function line_interpolate 

Source
pub fn line_interpolate<L>(ls: &L, t: f64) -> L::Point
Expand description

Return the point at fractional arc-length t ∈ [0, 1] along ls, measured by accumulated Pythagorean segment length.

Mirrors boost::geometry::line_interpolate from boost/geometry/algorithms/line_interpolate.hpp. t = 0 returns the first point, t = 1 the last; both short-circuit without walking the whole linestring.