pub struct Snap {
pub edge: usize,
pub dist: f64,
pub x: f64,
pub y: f64,
pub pos: f64,
}Expand description
The nearest location on the edge set to a query point.
Fields§
§edge: usize0-based edge index.
dist: f64Planar distance from the query point to the snapped location.
x: f64Snapped coordinates (on the edge polyline).
y: f64§pos: f64Planar distance along the edge polyline from its first vertex.
Auto Trait Implementations§
impl Freeze for Snap
impl RefUnwindSafe for Snap
impl Send for Snap
impl Sync for Snap
impl Unpin for Snap
impl UnsafeUnpin for Snap
impl UnwindSafe for Snap
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