Struct ncollide2d::query::PointProjection
source · Expand description
Description of the projection of a point on a shape.
Fields§
§is_inside: bool
Whether or not the point to project was inside of the shape.
point: Point<N>
The projection result.
Implementations§
source§impl<N: Real> PointProjection<N>
impl<N: Real> PointProjection<N>
sourcepub fn new(is_inside: bool, point: Point<N>) -> PointProjection<N>
pub fn new(is_inside: bool, point: Point<N>) -> PointProjection<N>
Initializes a new PointProjection
.
Trait Implementations§
source§impl<N: Clone + Real> Clone for PointProjection<N>
impl<N: Clone + Real> Clone for PointProjection<N>
source§fn clone(&self) -> PointProjection<N>
fn clone(&self) -> PointProjection<N>
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 moreimpl<N: Copy + Real> Copy for PointProjection<N>
Auto Trait Implementations§
impl<N> RefUnwindSafe for PointProjection<N>where
N: RefUnwindSafe,
impl<N> Send for PointProjection<N>
impl<N> Sync for PointProjection<N>
impl<N> Unpin for PointProjection<N>where
N: Unpin,
impl<N> UnwindSafe for PointProjection<N>where
N: UnwindSafe,
Blanket Implementations§
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§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 moresource§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).source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.