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>where
T: Real + Clone,
impl<T> Clone for ClosestPointResult<T>where T: Real + Clone,
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 more