Skip to main content

parameter_at_arc_length2

Function parameter_at_arc_length2 

Source
pub fn parameter_at_arc_length2(
    curve: &Curve2,
    from: f64,
    length: f64,
) -> Result<f64, GeomError>
Expand description

The parameter at signed arc length length from parameter from along a 2D curve: in increasing parameter for a positive length, decreasing for a negative one.

Refuses by name a length past the end of a bounded curve, a from outside its domain, and non-finite input. See the module documentation for the tolerance.