Struct parry3d::bounding_volume::SimdAABB
source · [−]Expand description
Four AABB represented as a single SoA AABB with SIMD components.
Fields
mins: Point<SimdReal>
The min coordinates of the AABBs.
maxs: Point<SimdReal>
The max coordinates the AABBs.
Implementations
sourceimpl SimdAABB
impl SimdAABB
sourcepub fn new_invalid() -> Self
pub fn new_invalid() -> Self
An invalid AABB.
sourcepub fn half_extents(&self) -> Vector<SimdReal>
pub fn half_extents(&self) -> Vector<SimdReal>
The half-extents of all the AABBs represented by `self``.
sourcepub fn transform_by(&self, transform: &Isometry<SimdReal>) -> Self
pub fn transform_by(&self, transform: &Isometry<SimdReal>) -> Self
Return the AABB of the self
transformed by the given isometry.
sourcepub fn dilate_by_factor(&mut self, factor: SimdReal)
pub fn dilate_by_factor(&mut self, factor: SimdReal)
Dilate all the AABBs represented by self`` by their extents multiplied by the given scale
factor`.
sourcepub fn replace(&mut self, i: usize, aabb: AABB)
pub fn replace(&mut self, i: usize, aabb: AABB)
Replace the i-th
AABB of this SIMD AAAB by the given value.
sourcepub fn cast_local_ray(
&self,
ray: &SimdRay,
max_toi: SimdReal
) -> (SimdBool, SimdReal)
pub fn cast_local_ray(
&self,
ray: &SimdRay,
max_toi: SimdReal
) -> (SimdBool, SimdReal)
Casts a ray on all the AABBs represented by self
.
sourcepub fn distance_to_local_point(&self, point: &Point<SimdReal>) -> SimdReal
pub fn distance_to_local_point(&self, point: &Point<SimdReal>) -> SimdReal
Computes the distances between a point and all the AABBs represented by self
.
sourcepub fn distance_to_origin(&self) -> SimdReal
pub fn distance_to_origin(&self) -> SimdReal
Computes the distances between the origin and all the AABBs represented by self
.
sourcepub fn contains_local_point(&self, point: &Point<SimdReal>) -> SimdBool
pub fn contains_local_point(&self, point: &Point<SimdReal>) -> SimdBool
Check which AABB represented by self
contains the given point
.
sourcepub fn contains(&self, other: &SimdAABB) -> SimdBool
pub fn contains(&self, other: &SimdAABB) -> SimdBool
Lanewise check which AABB represented by self
contains the given set of other
aabbs.
The check is performed lane-wise.
sourcepub fn intersects(&self, other: &SimdAABB) -> SimdBool
pub fn intersects(&self, other: &SimdAABB) -> SimdBool
Check which AABB represented by self
contains the given set of other
aabbs.
The check is performed lane-wise.
sourcepub fn intersects_permutations(&self, other: &SimdAABB) -> [SimdBool; 4]
pub fn intersects_permutations(&self, other: &SimdAABB) -> [SimdBool; 4]
Checks intersections between all the lanes combination between self
and other
.
The result is an array such that result[i].extract(j)
contains the intersection
result between self.extract(i)
and other.extract(j)
.
sourcepub fn to_merged_aabb(&self) -> AABB
pub fn to_merged_aabb(&self) -> AABB
Merge all the AABB represented by self
into a single one.
Trait Implementations
sourceimpl<'a, D: ?Sized, G1: ?Sized> SimdBestFirstVisitor<<G1 as TypedSimdCompositeShape>::PartId, SimdAABB> for CompositeShapeAgainstShapeClosestPointsVisitor<'a, D, G1> where
D: QueryDispatcher,
G1: TypedSimdCompositeShape,
impl<'a, D: ?Sized, G1: ?Sized> SimdBestFirstVisitor<<G1 as TypedSimdCompositeShape>::PartId, SimdAABB> for CompositeShapeAgainstShapeClosestPointsVisitor<'a, D, G1> where
D: QueryDispatcher,
G1: TypedSimdCompositeShape,
type Result = (<G1 as TypedSimdCompositeShape>::PartId, ClosestPoints)
type Result = (<G1 as TypedSimdCompositeShape>::PartId, ClosestPoints)
The result of a best-first traversal.
sourceimpl<'a, D: ?Sized, G1: ?Sized> SimdBestFirstVisitor<<G1 as TypedSimdCompositeShape>::PartId, SimdAABB> for CompositeShapeAgainstAnyDistanceVisitor<'a, D, G1> where
D: QueryDispatcher,
G1: TypedSimdCompositeShape,
impl<'a, D: ?Sized, G1: ?Sized> SimdBestFirstVisitor<<G1 as TypedSimdCompositeShape>::PartId, SimdAABB> for CompositeShapeAgainstAnyDistanceVisitor<'a, D, G1> where
D: QueryDispatcher,
G1: TypedSimdCompositeShape,
sourceimpl<'a, D: ?Sized, G1: ?Sized> SimdBestFirstVisitor<<G1 as TypedSimdCompositeShape>::PartId, SimdAABB> for IntersectionCompositeShapeShapeBestFirstVisitor<'a, D, G1> where
D: QueryDispatcher,
G1: TypedSimdCompositeShape,
impl<'a, D: ?Sized, G1: ?Sized> SimdBestFirstVisitor<<G1 as TypedSimdCompositeShape>::PartId, SimdAABB> for IntersectionCompositeShapeShapeBestFirstVisitor<'a, D, G1> where
D: QueryDispatcher,
G1: TypedSimdCompositeShape,
sourceimpl<'a, D: ?Sized, G1: ?Sized> SimdBestFirstVisitor<<G1 as TypedSimdCompositeShape>::PartId, SimdAABB> for NonlinearTOICompositeShapeShapeBestFirstVisitor<'a, D, G1> where
D: QueryDispatcher,
G1: TypedSimdCompositeShape,
impl<'a, D: ?Sized, G1: ?Sized> SimdBestFirstVisitor<<G1 as TypedSimdCompositeShape>::PartId, SimdAABB> for NonlinearTOICompositeShapeShapeBestFirstVisitor<'a, D, G1> where
D: QueryDispatcher,
G1: TypedSimdCompositeShape,
sourceimpl<'a, D: ?Sized, G1: ?Sized> SimdBestFirstVisitor<<G1 as TypedSimdCompositeShape>::PartId, SimdAABB> for TOICompositeShapeShapeBestFirstVisitor<'a, D, G1> where
D: QueryDispatcher,
G1: TypedSimdCompositeShape,
impl<'a, D: ?Sized, G1: ?Sized> SimdBestFirstVisitor<<G1 as TypedSimdCompositeShape>::PartId, SimdAABB> for TOICompositeShapeShapeBestFirstVisitor<'a, D, G1> where
D: QueryDispatcher,
G1: TypedSimdCompositeShape,
sourceimpl<'a, S> SimdBestFirstVisitor<<S as TypedSimdCompositeShape>::PartId, SimdAABB> for PointCompositeShapeProjBestFirstVisitor<'a, S> where
S: TypedSimdCompositeShape,
impl<'a, S> SimdBestFirstVisitor<<S as TypedSimdCompositeShape>::PartId, SimdAABB> for PointCompositeShapeProjBestFirstVisitor<'a, S> where
S: TypedSimdCompositeShape,
type Result = (PointProjection, <S as TypedSimdCompositeShape>::PartId)
type Result = (PointProjection, <S as TypedSimdCompositeShape>::PartId)
The result of a best-first traversal.
sourceimpl<'a, S> SimdBestFirstVisitor<<S as TypedSimdCompositeShape>::PartId, SimdAABB> for PointCompositeShapeProjWithLocationBestFirstVisitor<'a, S> where
S: TypedSimdCompositeShape,
<S::PartShape as PointQueryWithLocation>::Location: Copy,
S::PartShape: PointQueryWithLocation,
S::PartShape: Copy,
impl<'a, S> SimdBestFirstVisitor<<S as TypedSimdCompositeShape>::PartId, SimdAABB> for PointCompositeShapeProjWithLocationBestFirstVisitor<'a, S> where
S: TypedSimdCompositeShape,
<S::PartShape as PointQueryWithLocation>::Location: Copy,
S::PartShape: PointQueryWithLocation,
S::PartShape: Copy,
type Result = (PointProjection, (<S as TypedSimdCompositeShape>::PartId, <<S as TypedSimdCompositeShape>::PartShape as PointQueryWithLocation>::Location))
type Result = (PointProjection, (<S as TypedSimdCompositeShape>::PartId, <<S as TypedSimdCompositeShape>::PartShape as PointQueryWithLocation>::Location))
The result of a best-first traversal.
sourceimpl<'a, S> SimdBestFirstVisitor<<S as TypedSimdCompositeShape>::PartId, SimdAABB> for PointCompositeShapeProjWithFeatureBestFirstVisitor<'a, S> where
S: TypedSimdCompositeShape,
FeatureId: Copy,
impl<'a, S> SimdBestFirstVisitor<<S as TypedSimdCompositeShape>::PartId, SimdAABB> for PointCompositeShapeProjWithFeatureBestFirstVisitor<'a, S> where
S: TypedSimdCompositeShape,
FeatureId: Copy,
type Result = (PointProjection, (<S as TypedSimdCompositeShape>::PartId, FeatureId))
type Result = (PointProjection, (<S as TypedSimdCompositeShape>::PartId, FeatureId))
The result of a best-first traversal.
sourceimpl<'a, S> SimdBestFirstVisitor<<S as TypedSimdCompositeShape>::PartId, SimdAABB> for RayCompositeShapeToiBestFirstVisitor<'a, S> where
S: TypedSimdCompositeShape,
impl<'a, S> SimdBestFirstVisitor<<S as TypedSimdCompositeShape>::PartId, SimdAABB> for RayCompositeShapeToiBestFirstVisitor<'a, S> where
S: TypedSimdCompositeShape,
sourceimpl<'a, S> SimdBestFirstVisitor<<S as TypedSimdCompositeShape>::PartId, SimdAABB> for RayCompositeShapeToiAndNormalBestFirstVisitor<'a, S> where
S: TypedSimdCompositeShape,
impl<'a, S> SimdBestFirstVisitor<<S as TypedSimdCompositeShape>::PartId, SimdAABB> for RayCompositeShapeToiAndNormalBestFirstVisitor<'a, S> where
S: TypedSimdCompositeShape,
type Result = (<S as TypedSimdCompositeShape>::PartId, RayIntersection)
type Result = (<S as TypedSimdCompositeShape>::PartId, RayIntersection)
The result of a best-first traversal.
sourceimpl<'a, S: SimdCompositeShape + PointQuery> SimdBestFirstVisitor<u32, SimdAABB> for CompositeClosestPointVisitor<'a, S>
impl<'a, S: SimdCompositeShape + PointQuery> SimdBestFirstVisitor<u32, SimdAABB> for CompositeClosestPointVisitor<'a, S>
type Result = PointProjection
type Result = PointProjection
The result of a best-first traversal.
sourceimpl<T1, T2, F> SimdSimultaneousVisitor<T1, T2, SimdAABB> for BoundingVolumeIntersectionsSimultaneousVisitor<T1, T2, F> where
F: FnMut(&T1, &T2) -> bool,
impl<T1, T2, F> SimdSimultaneousVisitor<T1, T2, SimdAABB> for BoundingVolumeIntersectionsSimultaneousVisitor<T1, T2, F> where
F: FnMut(&T1, &T2) -> bool,
sourceimpl<T, F> SimdVisitor<T, SimdAABB> for BoundingVolumeIntersectionsVisitor<T, F> where
F: FnMut(&T) -> bool,
impl<T, F> SimdVisitor<T, SimdAABB> for BoundingVolumeIntersectionsVisitor<T, F> where
F: FnMut(&T) -> bool,
sourceimpl<'a, T, F> SimdVisitor<T, SimdAABB> for PointIntersectionsVisitor<'a, T, F> where
F: FnMut(&T) -> bool,
impl<'a, T, F> SimdVisitor<T, SimdAABB> for PointIntersectionsVisitor<'a, T, F> where
F: FnMut(&T) -> bool,
sourceimpl<'a, T, F> SimdVisitor<T, SimdAABB> for RayIntersectionsVisitor<'a, T, F> where
F: FnMut(&T) -> bool,
impl<'a, T, F> SimdVisitor<T, SimdAABB> for RayIntersectionsVisitor<'a, T, F> where
F: FnMut(&T) -> bool,
sourceimpl<'a, S: SimdCompositeShape> SimdVisitor<u32, SimdAABB> for CompositePointContainmentTest<'a, S>
impl<'a, S: SimdCompositeShape> SimdVisitor<u32, SimdAABB> for CompositePointContainmentTest<'a, S>
impl Copy for SimdAABB
Auto Trait Implementations
impl RefUnwindSafe for SimdAABB
impl Send for SimdAABB
impl Sync for SimdAABB
impl Unpin for SimdAABB
impl UnwindSafe for SimdAABB
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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
sourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
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
sourcefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
sourcefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
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
sourceimpl<T> DowncastSync for T where
T: Any + Send + Sync,
impl<T> DowncastSync for T where
T: Any + Send + Sync,
sourceimpl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
sourcefn 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
sourcefn 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).
sourcefn 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.
sourcefn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more