Struct fenris_geometry::PolygonClosestPoint
source · pub struct PolygonClosestPoint<T, D>where
T: Scalar,
D: DimName,
DefaultAllocator: Allocator<T, D>,{
pub closest_point: OPoint<T, D>,
pub distance: T,
}
Fields§
§closest_point: OPoint<T, D>
§distance: T
Trait Implementations§
source§impl<T, D> Clone for PolygonClosestPoint<T, D>where
T: Scalar + Clone,
D: DimName + Clone,
DefaultAllocator: Allocator<T, D>,
impl<T, D> Clone for PolygonClosestPoint<T, D>where
T: Scalar + Clone,
D: DimName + Clone,
DefaultAllocator: Allocator<T, D>,
source§fn clone(&self) -> PolygonClosestPoint<T, D>
fn clone(&self) -> PolygonClosestPoint<T, D>
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, D> Debug for PolygonClosestPoint<T, D>where
T: Scalar + Debug,
D: DimName + Debug,
DefaultAllocator: Allocator<T, D>,
impl<T, D> Debug for PolygonClosestPoint<T, D>where
T: Scalar + Debug,
D: DimName + Debug,
DefaultAllocator: Allocator<T, D>,
source§impl<T, D> PartialEq<PolygonClosestPoint<T, D>> for PolygonClosestPoint<T, D>where
T: Scalar + PartialEq,
D: DimName + PartialEq,
DefaultAllocator: Allocator<T, D>,
impl<T, D> PartialEq<PolygonClosestPoint<T, D>> for PolygonClosestPoint<T, D>where
T: Scalar + PartialEq,
D: DimName + PartialEq,
DefaultAllocator: Allocator<T, D>,
source§fn eq(&self, other: &PolygonClosestPoint<T, D>) -> bool
fn eq(&self, other: &PolygonClosestPoint<T, D>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T, D> StructuralPartialEq for PolygonClosestPoint<T, D>where
T: Scalar,
D: DimName,
DefaultAllocator: Allocator<T, D>,
Auto Trait Implementations§
impl<T, D> !RefUnwindSafe for PolygonClosestPoint<T, D>
impl<T, D> !Send for PolygonClosestPoint<T, D>
impl<T, D> !Sync for PolygonClosestPoint<T, D>
impl<T, D> !Unpin for PolygonClosestPoint<T, D>
impl<T, D> !UnwindSafe for PolygonClosestPoint<T, D>
Blanket Implementations§
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.