Struct parry2d::bounding_volume::SimdAABB [−][src]
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
impl SimdAABB
[src]
pub fn new_invalid() -> Self
[src]
An invalid AABB.
pub fn splat(aabb: AABB) -> Self
[src]
Builds an SIMD aabb composed of four identical aabbs.
pub fn center(&self) -> Point<SimdReal>
[src]
The center of all the AABBs represented by `self``.
pub fn half_extents(&self) -> Vector<SimdReal>
[src]
The half-extents of all the AABBs represented by `self``.
pub fn radius(&self) -> SimdReal
[src]
The radius of all the AABBs represented by `self``.
pub fn dilate_by_factor(&mut self, factor: SimdReal)
[src]
Dilate all the AABBs represented by self`` by their extents multiplied by the given scale
factor`.
pub fn replace(&mut self, i: usize, aabb: AABB)
[src]
Replace the i-th
AABB of this SIMD AAAB by the given value.
pub fn cast_local_ray(
&self,
ray: &SimdRay,
max_toi: SimdReal
) -> (SimdBool, SimdReal)
[src]
&self,
ray: &SimdRay,
max_toi: SimdReal
) -> (SimdBool, SimdReal)
Casts a ray on all the AABBs represented by self
.
pub fn distance_to_local_point(&self, point: &Point<SimdReal>) -> SimdReal
[src]
Computes the distances between a point and all the AABBs represented by self
.
pub fn distance_to_origin(&self) -> SimdReal
[src]
Computes the distances between the origin and all the AABBs represented by self
.
pub fn contains_local_point(&self, point: &Point<SimdReal>) -> SimdBool
[src]
Check which AABB represented by self
contains the given point
.
pub fn contains(&self, other: &SimdAABB) -> SimdBool
[src]
Lanewise check which AABB represented by self
contains the given set of other
aabbs.
The check is performed lane-wise.
pub fn intersects(&self, other: &SimdAABB) -> SimdBool
[src]
Lanewise check which AABB represented by self
intersects the given set of other
aabbs.
The check is performed lane-wise.
pub fn to_merged_aabb(&self) -> AABB
[src]
Merge all the AABB represented by self
into a single one.
Trait Implementations
impl Clone for SimdAABB
[src]
impl Copy for SimdAABB
[src]
impl Debug for SimdAABB
[src]
impl From<[AABB; 4]> for SimdAABB
[src]
impl<'a, D: ?Sized, G1: ?Sized> SimdBestFirstVisitor<<G1 as TypedSimdCompositeShape>::PartId, SimdAABB> for CompositeShapeAgainstShapeClosestPointsVisitor<'a, D, G1> where
D: QueryDispatcher,
G1: TypedSimdCompositeShape,
[src]
D: QueryDispatcher,
G1: TypedSimdCompositeShape,
type Result = (G1::PartId, ClosestPoints)
The result of a best-first traversal.
fn visit(
&mut self,
best: Real,
bv: &SimdAABB,
data: Option<[Option<&G1::PartId>; 4]>
) -> SimdBestFirstVisitStatus<Self::Result>
[src]
&mut self,
best: Real,
bv: &SimdAABB,
data: Option<[Option<&G1::PartId>; 4]>
) -> SimdBestFirstVisitStatus<Self::Result>
impl<'a, D: ?Sized, G1: ?Sized> SimdBestFirstVisitor<<G1 as TypedSimdCompositeShape>::PartId, SimdAABB> for CompositeShapeAgainstAnyDistanceVisitor<'a, D, G1> where
D: QueryDispatcher,
G1: TypedSimdCompositeShape,
[src]
D: QueryDispatcher,
G1: TypedSimdCompositeShape,
type Result = (G1::PartId, Real)
The result of a best-first traversal.
fn visit(
&mut self,
best: Real,
bv: &SimdAABB,
data: Option<[Option<&G1::PartId>; 4]>
) -> SimdBestFirstVisitStatus<Self::Result>
[src]
&mut self,
best: Real,
bv: &SimdAABB,
data: Option<[Option<&G1::PartId>; 4]>
) -> SimdBestFirstVisitStatus<Self::Result>
impl<'a, D: ?Sized, G1: ?Sized> SimdBestFirstVisitor<<G1 as TypedSimdCompositeShape>::PartId, SimdAABB> for IntersectionCompositeShapeShapeBestFirstVisitor<'a, D, G1> where
D: QueryDispatcher,
G1: TypedSimdCompositeShape,
[src]
D: QueryDispatcher,
G1: TypedSimdCompositeShape,
type Result = (G1::PartId, bool)
The result of a best-first traversal.
fn visit(
&mut self,
best: Real,
bv: &SimdAABB,
data: Option<[Option<&G1::PartId>; 4]>
) -> SimdBestFirstVisitStatus<Self::Result>
[src]
&mut self,
best: Real,
bv: &SimdAABB,
data: Option<[Option<&G1::PartId>; 4]>
) -> SimdBestFirstVisitStatus<Self::Result>
impl<'a, D: ?Sized, G1: ?Sized> SimdBestFirstVisitor<<G1 as TypedSimdCompositeShape>::PartId, SimdAABB> for NonlinearTOICompositeShapeShapeBestFirstVisitor<'a, D, G1> where
D: QueryDispatcher,
G1: TypedSimdCompositeShape,
[src]
D: QueryDispatcher,
G1: TypedSimdCompositeShape,
type Result = (G1::PartId, TOI)
The result of a best-first traversal.
fn visit(
&mut self,
best: Real,
bv: &SimdAABB,
data: Option<[Option<&G1::PartId>; 4]>
) -> SimdBestFirstVisitStatus<Self::Result>
[src]
&mut self,
best: Real,
bv: &SimdAABB,
data: Option<[Option<&G1::PartId>; 4]>
) -> SimdBestFirstVisitStatus<Self::Result>
impl<'a, D: ?Sized, G1: ?Sized> SimdBestFirstVisitor<<G1 as TypedSimdCompositeShape>::PartId, SimdAABB> for TOICompositeShapeShapeBestFirstVisitor<'a, D, G1> where
D: QueryDispatcher,
G1: TypedSimdCompositeShape,
[src]
D: QueryDispatcher,
G1: TypedSimdCompositeShape,
type Result = (G1::PartId, TOI)
The result of a best-first traversal.
fn visit(
&mut self,
best: Real,
bv: &SimdAABB,
data: Option<[Option<&G1::PartId>; 4]>
) -> SimdBestFirstVisitStatus<Self::Result>
[src]
&mut self,
best: Real,
bv: &SimdAABB,
data: Option<[Option<&G1::PartId>; 4]>
) -> SimdBestFirstVisitStatus<Self::Result>
impl<'a, S> SimdBestFirstVisitor<<S as TypedSimdCompositeShape>::PartId, SimdAABB> for PointCompositeShapeProjBestFirstVisitor<'a, S> where
S: TypedSimdCompositeShape,
[src]
S: TypedSimdCompositeShape,
type Result = (PointProjection, S::PartId)
The result of a best-first traversal.
fn visit(
&mut self,
best: Real,
aabb: &SimdAABB,
data: Option<[Option<&S::PartId>; 4]>
) -> SimdBestFirstVisitStatus<Self::Result>
[src]
&mut self,
best: Real,
aabb: &SimdAABB,
data: Option<[Option<&S::PartId>; 4]>
) -> SimdBestFirstVisitStatus<Self::Result>
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,
[src]
S: TypedSimdCompositeShape,
<S::PartShape as PointQueryWithLocation>::Location: Copy,
S::PartShape: PointQueryWithLocation,
S::PartShape: Copy,
type Result = (PointProjection, (S::PartId, <S::PartShape as PointQueryWithLocation>::Location))
The result of a best-first traversal.
fn visit(
&mut self,
best: Real,
aabb: &SimdAABB,
data: Option<[Option<&S::PartId>; 4]>
) -> SimdBestFirstVisitStatus<Self::Result>
[src]
&mut self,
best: Real,
aabb: &SimdAABB,
data: Option<[Option<&S::PartId>; 4]>
) -> SimdBestFirstVisitStatus<Self::Result>
impl<'a, S> SimdBestFirstVisitor<<S as TypedSimdCompositeShape>::PartId, SimdAABB> for PointCompositeShapeProjWithFeatureBestFirstVisitor<'a, S> where
S: TypedSimdCompositeShape,
FeatureId: Copy,
[src]
S: TypedSimdCompositeShape,
FeatureId: Copy,
type Result = (PointProjection, (S::PartId, FeatureId))
The result of a best-first traversal.
fn visit(
&mut self,
best: Real,
aabb: &SimdAABB,
data: Option<[Option<&S::PartId>; 4]>
) -> SimdBestFirstVisitStatus<Self::Result>
[src]
&mut self,
best: Real,
aabb: &SimdAABB,
data: Option<[Option<&S::PartId>; 4]>
) -> SimdBestFirstVisitStatus<Self::Result>
impl<'a, S> SimdBestFirstVisitor<<S as TypedSimdCompositeShape>::PartId, SimdAABB> for RayCompositeShapeToiBestFirstVisitor<'a, S> where
S: TypedSimdCompositeShape,
[src]
S: TypedSimdCompositeShape,
type Result = (S::PartId, Real)
The result of a best-first traversal.
fn visit(
&mut self,
best: Real,
aabb: &SimdAABB,
data: Option<[Option<&S::PartId>; 4]>
) -> SimdBestFirstVisitStatus<Self::Result>
[src]
&mut self,
best: Real,
aabb: &SimdAABB,
data: Option<[Option<&S::PartId>; 4]>
) -> SimdBestFirstVisitStatus<Self::Result>
impl<'a, S> SimdBestFirstVisitor<<S as TypedSimdCompositeShape>::PartId, SimdAABB> for RayCompositeShapeToiAndNormalBestFirstVisitor<'a, S> where
S: TypedSimdCompositeShape,
[src]
S: TypedSimdCompositeShape,
type Result = (S::PartId, RayIntersection)
The result of a best-first traversal.
fn visit(
&mut self,
best: Real,
aabb: &SimdAABB,
data: Option<[Option<&S::PartId>; 4]>
) -> SimdBestFirstVisitStatus<Self::Result>
[src]
&mut self,
best: Real,
aabb: &SimdAABB,
data: Option<[Option<&S::PartId>; 4]>
) -> SimdBestFirstVisitStatus<Self::Result>
impl<'a, S: SimdCompositeShape + PointQuery> SimdBestFirstVisitor<u32, SimdAABB> for CompositeClosestPointVisitor<'a, S>
[src]
type Result = PointProjection
The result of a best-first traversal.
fn visit(
&mut self,
best: Real,
aabb: &SimdAABB,
data: Option<[Option<&u32>; 4]>
) -> SimdBestFirstVisitStatus<Self::Result>
[src]
&mut self,
best: Real,
aabb: &SimdAABB,
data: Option<[Option<&u32>; 4]>
) -> SimdBestFirstVisitStatus<Self::Result>
impl<'a, T, F> SimdVisitor<T, SimdAABB> for BoundingVolumeIntersectionsVisitor<'a, T, F> where
F: FnMut(&T) -> bool,
[src]
F: FnMut(&T) -> bool,
impl<'a, T, F> SimdVisitor<T, SimdAABB> for PointIntersectionsVisitor<'a, T, F> where
F: FnMut(&T) -> bool,
[src]
F: FnMut(&T) -> bool,
impl<'a, T, F> SimdVisitor<T, SimdAABB> for RayIntersectionsVisitor<'a, T, F> where
F: FnMut(&T) -> bool,
[src]
F: FnMut(&T) -> bool,
impl<'a, S: SimdCompositeShape> SimdVisitor<u32, SimdAABB> for CompositePointContainmentTest<'a, S>
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Az for T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CheckedAs for T
[src]
pub fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
[src]
T: CheckedCast<Dst>,
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
[src]
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>,
[src]
Dst: LosslessTryFrom<Src>,
pub fn lossless_try_into(self) -> Option<Dst>
[src]
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
[src]
Dst: LossyFrom<Src>,
pub fn lossy_into(self) -> Dst
[src]
impl<T> OverflowingAs for T
[src]
pub fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
[src]
T: OverflowingCast<Dst>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SaturatingAs for T
[src]
pub fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
[src]
T: SaturatingCast<Dst>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnwrappedAs for T
[src]
pub fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
[src]
T: UnwrappedCast<Dst>,
impl<T> WrappingAs for T
[src]
pub fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
[src]
T: WrappingCast<Dst>,