pub struct Nearest {
pub distance_sq: f64,
pub t: f64,
}
Expand description
The nearest position on a curve to some point.
This is returned by ParamCurveNearest::nearest
Fields§
§distance_sq: f64
The square of the distance from the nearest position on the curve to the given point.
t: f64
The position on the curve of the nearest point, as a parameter.
To resolve this to a Point
, use ParamCurve::eval
.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Nearest
impl Send for Nearest
impl Sync for Nearest
impl Unpin for Nearest
impl UnwindSafe for Nearest
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.