pub trait ParamCurveNearest {
    fn nearest(&self, p: Vec2, accuracy: f64) -> (f64, f64);
}
Expand description

A parametrized curve that reports the nearest point.

Required Methods§

Find the point on the curve nearest the given point.

Returns the parameter and the square of the distance.

Implementors§