pub fn parameter_at_length(
curve: &Curve,
range: (f64, f64),
target: f64,
tol: Tolerances,
) -> OgeomResult<f64>Expand description
The parameter at which a given arc length from the start of range is
reached.
The inverse of curve_length. target is measured from range.0, and
must lie between zero and the curve’s total length over the range; asking
for a point beyond the end is refused rather than clamped, because a
clamped answer is indistinguishable from a correct one at the end.
§Errors
OgeomError::Domain if target is negative or
past the end; OgeomError::NotDone if the solve
does not converge.