Struct heron::rapier_plugin::rapier::ncollide::bounding_volume::AABB [−][src]
An Axis Aligned Bounding Box.
Fields
mins: Point<N, U3>
maxs: Point<N, U3>
Implementations
impl<N> AABB<N> where
N: RealField,
[src]
N: RealField,
pub fn new(mins: Point<N, U3>, maxs: Point<N, U3>) -> AABB<N>
[src]
Creates a new AABB.
Arguments:
mins
- position of the point with the smallest coordinates.maxs
- position of the point with the highest coordinates. Each component ofmins
must be smaller than the related components ofmaxs
.
pub fn new_invalid() -> AABB<N>
[src]
Creates an invalid AABB with mins
components set to N::max_values
and maxs
components set to -N::max_values
.
This is often used as the initial values of some AABB merging algorithms.
pub fn from_half_extents(
center: Point<N, U3>,
half_extents: Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>
) -> AABB<N>
[src]
center: Point<N, U3>,
half_extents: Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>
) -> AABB<N>
Creates a new AABB from its center and its half-extents.
pub fn from_points<'a, I>(pts: I) -> AABB<N> where
I: IntoIterator<Item = &'a Point<N, U3>>,
[src]
I: IntoIterator<Item = &'a Point<N, U3>>,
Creates a new AABB from a set of points.
pub fn mins(&self) -> &Point<N, U3>
[src]
use the .mins
public field instead.
Reference to the AABB point with the smallest components along each axis.
pub fn maxs(&self) -> &Point<N, U3>
[src]
use the .maxs
public field instead.
Reference to the AABB point with the biggest components along each axis.
pub fn center(&self) -> Point<N, U3>
[src]
The center of this AABB.
pub fn half_extents(
&self
) -> Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>
[src]
&self
) -> Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>
The half extents of this AABB.
pub fn extents(
&self
) -> Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>
[src]
&self
) -> Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>
The extents of this AABB.
pub fn take_point(&mut self, pt: Point<N, U3>)
[src]
Enlarges this AABB so it also contains the point pt
.
pub fn transform_by(&self, m: &Isometry<N, U3, Unit<Quaternion<N>>>) -> AABB<N>
[src]
Computes the AABB bounding self
transformed by m
.
pub fn bounding_sphere(&self) -> BoundingSphere<N>
[src]
The smallest bounding sphere containing this AABB.
pub fn contains_local_point(&self, point: &Point<N, U3>) -> bool
[src]
impl<N> AABB<N> where
N: RealField,
[src]
N: RealField,
pub fn clip_line_parameters(
&self,
orig: &Point<N, U3>,
dir: &Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>
) -> Option<(N, N)>
[src]
&self,
orig: &Point<N, U3>,
dir: &Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>
) -> Option<(N, N)>
Computes the parameters of the two intersection points between a line and this AABB.
The parameters are such that the point are given by orig + dir * parameter
.
Returns None
if there is no intersection.
pub fn clip_line(
&self,
orig: &Point<N, U3>,
dir: &Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>
) -> Option<Segment<N>>
[src]
&self,
orig: &Point<N, U3>,
dir: &Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>
) -> Option<Segment<N>>
Computes the intersection segment between a line and this AABB.
Returns None
if there is no intersection.
pub fn clip_ray_parameters(&self, ray: &Ray<N>) -> Option<(N, N)>
[src]
Computes the parameters of the two intersection points between a ray and this AABB.
The parameters are such that the point are given by ray.orig + ray.dir * parameter
.
Returns None
if there is no intersection.
pub fn clip_ray(&self, ray: &Ray<N>) -> Option<Segment<N>>
[src]
Computes the intersection segment between a ray and this AABB.
Returns None
if there is no intersection.
Trait Implementations
impl<'a, N, S> BestFirstVisitor<N, usize, AABB<N>> for CompositeClosestPointVisitor<'a, N, S> where
N: RealField,
S: PointQuery<N> + CompositeShape<N>,
[src]
N: RealField,
S: PointQuery<N> + CompositeShape<N>,
type Result = PointProjection<N>
The result of a best-first traversal.
pub fn visit(
&mut self,
best: N,
aabb: &AABB<N>,
data: Option<&usize>
) -> BestFirstVisitStatus<N, <CompositeClosestPointVisitor<'a, N, S> as BestFirstVisitor<N, usize, AABB<N>>>::Result>
[src]
&mut self,
best: N,
aabb: &AABB<N>,
data: Option<&usize>
) -> BestFirstVisitStatus<N, <CompositeClosestPointVisitor<'a, N, S> as BestFirstVisitor<N, usize, AABB<N>>>::Result>
impl<N> BoundingVolume<N> for AABB<N> where
N: RealField,
[src]
N: RealField,
pub fn center(&self) -> Point<N, U3>
[src]
pub fn intersects(&self, other: &AABB<N>) -> bool
[src]
pub fn contains(&self, other: &AABB<N>) -> bool
[src]
pub fn merge(&mut self, other: &AABB<N>)
[src]
pub fn merged(&self, other: &AABB<N>) -> AABB<N>
[src]
pub fn loosen(&mut self, amount: N)
[src]
pub fn loosened(&self, amount: N) -> AABB<N>
[src]
pub fn tighten(&mut self, amount: N)
[src]
pub fn tightened(&self, amount: N) -> AABB<N>
[src]
impl<N> Clone for AABB<N> where
N: Clone + RealField,
[src]
N: Clone + RealField,
impl<N> Copy for AABB<N> where
N: Copy + RealField,
[src]
N: Copy + RealField,
impl<N> Debug for AABB<N> where
N: Debug + RealField,
[src]
N: Debug + RealField,
impl<N> HasBoundingVolume<N, AABB<N>> for Cone<N> where
N: RealField,
[src]
N: RealField,
pub fn bounding_volume(
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> AABB<N>
[src]
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> AABB<N>
pub fn local_bounding_volume(&self) -> AABB<N>
[src]
impl<N> HasBoundingVolume<N, AABB<N>> for Capsule<N> where
N: RealField,
[src]
N: RealField,
pub fn bounding_volume(
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> AABB<N>
[src]
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> AABB<N>
pub fn local_bounding_volume(&self) -> AABB<N>
[src]
impl<N> HasBoundingVolume<N, AABB<N>> for Ball<N> where
N: RealField,
[src]
N: RealField,
pub fn bounding_volume(
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> AABB<N>
[src]
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> AABB<N>
pub fn local_bounding_volume(&self) -> AABB<N>
[src]
impl<N> HasBoundingVolume<N, AABB<N>> for Polyline<N> where
N: RealField,
[src]
N: RealField,
pub fn bounding_volume(
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> AABB<N>
[src]
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> AABB<N>
pub fn local_bounding_volume(&self) -> AABB<N>
[src]
impl<N> HasBoundingVolume<N, AABB<N>> for HeightField<N> where
N: RealField,
[src]
N: RealField,
pub fn bounding_volume(
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> AABB<N>
[src]
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> AABB<N>
pub fn local_bounding_volume(&self) -> AABB<N>
[src]
impl<N> HasBoundingVolume<N, AABB<N>> for TriMesh<N> where
N: RealField,
[src]
N: RealField,
pub fn bounding_volume(
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> AABB<N>
[src]
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> AABB<N>
pub fn local_bounding_volume(&self) -> AABB<N>
[src]
impl<N> HasBoundingVolume<N, AABB<N>> for Compound<N> where
N: RealField,
[src]
N: RealField,
pub fn bounding_volume(
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> AABB<N>
[src]
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> AABB<N>
pub fn local_bounding_volume(&self) -> AABB<N>
[src]
impl<N> HasBoundingVolume<N, AABB<N>> for Cuboid<N> where
N: RealField,
[src]
N: RealField,
pub fn bounding_volume(
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> AABB<N>
[src]
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> AABB<N>
pub fn local_bounding_volume(&self) -> AABB<N>
[src]
impl<N> HasBoundingVolume<N, AABB<N>> for Plane<N> where
N: RealField,
[src]
N: RealField,
pub fn bounding_volume(&self, &Isometry<N, U3, Unit<Quaternion<N>>>) -> AABB<N>
[src]
pub fn local_bounding_volume(&self) -> AABB<N>
[src]
impl<N> HasBoundingVolume<N, AABB<N>> for ConvexHull<N> where
N: RealField,
[src]
N: RealField,
pub fn bounding_volume(
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> AABB<N>
[src]
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> AABB<N>
pub fn local_bounding_volume(&self) -> AABB<N>
[src]
impl<N> HasBoundingVolume<N, AABB<N>> for Segment<N> where
N: RealField,
[src]
N: RealField,
pub fn bounding_volume(
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> AABB<N>
[src]
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> AABB<N>
pub fn local_bounding_volume(&self) -> AABB<N>
[src]
impl<N> HasBoundingVolume<N, AABB<N>> for Triangle<N> where
N: RealField,
[src]
N: RealField,
pub fn bounding_volume(
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> AABB<N>
[src]
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> AABB<N>
pub fn local_bounding_volume(&self) -> AABB<N>
[src]
impl<N> HasBoundingVolume<N, AABB<N>> for Cylinder<N> where
N: RealField,
[src]
N: RealField,
pub fn bounding_volume(
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> AABB<N>
[src]
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> AABB<N>
pub fn local_bounding_volume(&self) -> AABB<N>
[src]
impl<N> HasBoundingVolume<N, AABB<N>> for dyn Shape<N> + 'static where
N: RealField,
[src]
N: RealField,
pub fn bounding_volume(
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> AABB<N>
[src]
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> AABB<N>
pub fn local_bounding_volume(&self) -> AABB<N>
[src]
impl<N> PartialEq<AABB<N>> for AABB<N> where
N: PartialEq<N> + RealField,
[src]
N: PartialEq<N> + RealField,
impl<N> PointQuery<N> for AABB<N> where
N: RealField,
[src]
N: RealField,
pub fn project_point(
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>,
pt: &Point<N, U3>,
solid: bool
) -> PointProjection<N>
[src]
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>,
pt: &Point<N, U3>,
solid: bool
) -> PointProjection<N>
pub fn project_point_with_feature(
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>,
pt: &Point<N, U3>
) -> (PointProjection<N>, FeatureId)
[src]
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>,
pt: &Point<N, U3>
) -> (PointProjection<N>, FeatureId)
pub fn distance_to_point(
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>,
pt: &Point<N, U3>,
solid: bool
) -> N
[src]
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>,
pt: &Point<N, U3>,
solid: bool
) -> N
pub fn contains_point(
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>,
pt: &Point<N, U3>
) -> bool
[src]
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>,
pt: &Point<N, U3>
) -> bool
impl<N> RayCast<N> for AABB<N> where
N: RealField,
[src]
N: RealField,
pub fn toi_with_ray(
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>,
ray: &Ray<N>,
max_toi: N,
solid: bool
) -> Option<N>
[src]
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>,
ray: &Ray<N>,
max_toi: N,
solid: bool
) -> Option<N>
pub fn toi_and_normal_with_ray(
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>,
ray: &Ray<N>,
max_toi: N,
solid: bool
) -> Option<RayIntersection<N>>
[src]
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>,
ray: &Ray<N>,
max_toi: N,
solid: bool
) -> Option<RayIntersection<N>>
pub fn toi_and_normal_and_uv_with_ray(
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>,
ray: &Ray<N>,
max_toi: N,
solid: bool
) -> Option<RayIntersection<N>>
[src]
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>,
ray: &Ray<N>,
max_toi: N,
solid: bool
) -> Option<RayIntersection<N>>
pub fn intersects_ray(
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>,
ray: &Ray<N>,
max_toi: N
) -> bool
[src]
&self,
m: &Isometry<N, U3, Unit<Quaternion<N>>>,
ray: &Ray<N>,
max_toi: N
) -> bool
impl<'a, N, T> SimultaneousVisitor<T, AABB<N>> for AABBSetsInterferencesCollector<'a, N, T> where
T: Clone,
N: RealField,
[src]
T: Clone,
N: RealField,
pub fn visit(
&mut self,
left_bv: &AABB<N>,
left_data: Option<&T>,
right_bv: &AABB<N>,
right_data: Option<&T>
) -> VisitStatus
[src]
&mut self,
left_bv: &AABB<N>,
left_data: Option<&T>,
right_bv: &AABB<N>,
right_data: Option<&T>
) -> VisitStatus
impl<N> StructuralPartialEq for AABB<N> where
N: RealField,
[src]
N: RealField,
Auto Trait Implementations
impl<N> RefUnwindSafe for AABB<N> where
N: RefUnwindSafe,
[src]
N: RefUnwindSafe,
impl<N> Send for AABB<N>
[src]
impl<N> Sync for AABB<N>
[src]
impl<N> Unpin for AABB<N> where
N: Unpin,
[src]
N: Unpin,
impl<N> UnwindSafe for AABB<N> where
N: UnwindSafe,
[src]
N: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
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> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
impl<T> Component for T where
T: 'static + Send + Sync,
T: 'static + Send + Sync,
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Resource for T where
T: 'static + Send + Sync,
T: 'static + Send + Sync,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Scalar for T where
T: PartialEq<T> + Copy + Any + Debug,
[src]
T: PartialEq<T> + Copy + Any + Debug,
impl<T> Slottable for T where
T: Copy,
[src]
T: Copy,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
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> TypeData for T where
T: 'static + Send + Sync + Clone,
T: 'static + Send + Sync + Clone,
pub fn clone_type_data(&self) -> Box<dyn TypeData + 'static, Global>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,