Struct druid::kurbo::MinDistance
pub struct MinDistance {
pub distance: f64,
pub t1: f64,
pub t2: f64,
}
Expand description
The minimum distance between two Bézier curves.
Fields§
§distance: f64
The shortest distance between any two points on the two curves.
t1: f64
The position of the nearest point on the first curve, as a parameter.
To resolve this to a Point
, use ParamCurve::eval
.
t2: f64
The position of the nearest point on the second curve, as a parameter.
To resolve this to a Point
, use ParamCurve::eval
.
Auto Trait Implementations§
impl RefUnwindSafe for MinDistance
impl Send for MinDistance
impl Sync for MinDistance
impl Unpin for MinDistance
impl UnwindSafe for MinDistance
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.