Struct cavalier_contours::polyline::ClosestPointResult
source · pub struct ClosestPointResult<T = f64>where
T: Real,{
pub seg_start_index: usize,
pub seg_point: Vector2<T>,
pub distance: T,
}
Expand description
Result from calling PlineSource::closest_point.
Fields§
§seg_start_index: usize
The start vertex index of the closest segment.
seg_point: Vector2<T>
The closest point on the closest segment.
distance: T
The distance between the points.
Trait Implementations§
source§impl<T> Clone for ClosestPointResult<T>
impl<T> Clone for ClosestPointResult<T>
source§fn clone(&self) -> ClosestPointResult<T>
fn clone(&self) -> ClosestPointResult<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T> Debug for ClosestPointResult<T>
impl<T> Debug for ClosestPointResult<T>
impl<T> Copy for ClosestPointResult<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for ClosestPointResult<T>where
T: RefUnwindSafe,
impl<T> Send for ClosestPointResult<T>where
T: Send,
impl<T> Sync for ClosestPointResult<T>where
T: Sync,
impl<T> Unpin for ClosestPointResult<T>where
T: Unpin,
impl<T> UnwindSafe for ClosestPointResult<T>where
T: UnwindSafe,
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