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 Freeze for Nearest
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)