pub struct Nearest {
pub subpath: usize,
pub segment: usize,
pub t: f64,
pub point: Point,
pub distance: f64,
}Expand description
The point of a path nearest another.
Fields§
§subpath: usizeThe subpath.
segment: usizeThe segment within it: segment i runs from vertex i to the next.
t: f64The parameter along the segment, in 0..=1.
point: PointThe nearest point, normalized.
distance: f64Its distance from the point asked about, in pixels.
Trait Implementations§
impl Copy for Nearest
impl StructuralPartialEq for Nearest
Auto Trait Implementations§
impl Freeze for Nearest
impl RefUnwindSafe for Nearest
impl Send for Nearest
impl Sync for Nearest
impl Unpin for Nearest
impl UnsafeUnpin 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