Struct parry3d::query::gjk::CSOPoint [−][src]
Expand description
A point of a Configuration-Space Obstacle.
A Configuration-Space Obstacle (CSO) is the result of the Minkowski Difference of two solids. In other words, each of its points correspond to the difference of two point, each belonging to a different solid.
Fields
point: Point<Real>
Expand description
The point on the CSO. This is equal to self.orig1 - self.orig2
, unless this CSOPoint
has been translated with self.translate.
orig1: Point<Real>
Expand description
The original point on the first shape used to compute self.point
.
orig2: Point<Real>
Expand description
The original point on the second shape used to compute self.point
.
Implementations
impl CSOPoint
[src]
impl CSOPoint
[src]pub fn new(orig1: Point<Real>, orig2: Point<Real>) -> Self
[src]
pub fn new(orig1: Point<Real>, orig2: Point<Real>) -> Self
[src]Initializes a CSO point with orig1 - orig2
.
pub fn new_with_point(
point: Point<Real>,
orig1: Point<Real>,
orig2: Point<Real>
) -> Self
[src]
pub fn new_with_point(
point: Point<Real>,
orig1: Point<Real>,
orig2: Point<Real>
) -> Self
[src]Initializes a CSO point with all information provided.
It is assumed, but not checked, that point == orig1 - orig2
.
pub fn single_point(point: Point<Real>) -> Self
[src]
pub fn single_point(point: Point<Real>) -> Self
[src]Initializes a CSO point where both original points are equal.
pub fn from_shapes_toward<G1: ?Sized, G2: ?Sized>(
pos12: &Isometry<Real>,
g1: &G1,
g2: &G2,
dir: &Unit<Vector<Real>>
) -> Self where
G1: SupportMap,
G2: SupportMap,
[src]
pub fn from_shapes_toward<G1: ?Sized, G2: ?Sized>(
pos12: &Isometry<Real>,
g1: &G1,
g2: &G2,
dir: &Unit<Vector<Real>>
) -> Self where
G1: SupportMap,
G2: SupportMap,
[src]Computes the support point of the CSO of g1
and g2
toward the unit direction dir
.
pub fn from_shapes<G1: ?Sized, G2: ?Sized>(
pos12: &Isometry<Real>,
g1: &G1,
g2: &G2,
dir: &Vector<Real>
) -> Self where
G1: SupportMap,
G2: SupportMap,
[src]
pub fn from_shapes<G1: ?Sized, G2: ?Sized>(
pos12: &Isometry<Real>,
g1: &G1,
g2: &G2,
dir: &Vector<Real>
) -> Self where
G1: SupportMap,
G2: SupportMap,
[src]Computes the support point of the CSO of g1
and g2
toward the direction dir
.
pub fn translate_mut(&mut self, dir: &Vector<Real>)
[src]
pub fn translate_mut(&mut self, dir: &Vector<Real>)
[src]Translate in-place the CSO point.
Trait Implementations
impl Copy for CSOPoint
[src]
impl StructuralPartialEq for CSOPoint
[src]
Auto Trait Implementations
impl RefUnwindSafe for CSOPoint
impl Send for CSOPoint
impl Sync for CSOPoint
impl Unpin for CSOPoint
impl UnwindSafe for CSOPoint
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
[src]
impl<T> Downcast for T where
T: Any,
[src]pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
[src]
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
[src]Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn to_subset(&self) -> Option<SS>
[src]The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
[src]
pub fn is_in_subset(&self) -> bool
[src]Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
[src]
pub fn from_subset(element: &SS) -> SP
[src]The inclusion map: converts self
to the equivalent element of its superset.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more