[][src]Struct ncollide2d::bounding_volume::AABB

pub struct AABB<N: Real> { /* fields omitted */ }

An Axis Aligned Bounding Box.

Methods

impl<N: Real> 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 of mins must be smaller than the related components of maxs.

Creates a new AABB from its scenter and its half-extents.

Reference to the AABB point with the smallest components along each axis.

Reference to the AABB point with the biggest components along each axis.

The center of this AABB.

The half extents of this AABB.

The extents of this AABB.

Computes the AABB bounding self transformed by m.

The smallest bounding sphere containing this AABB.

impl<N: Real> AABB<N>
[src]

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.

Computes the intersection segment between a line and this AABB.

Returns None if there is no intersection.

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.

Computes the intersection segment between a ray and this AABB.

Returns None if there is no intersection.

Trait Implementations

impl<N: Real> HasBoundingVolume<N, AABB<N>> for Ball<N>
[src]

impl<N: Real> HasBoundingVolume<N, AABB<N>> for Compound<N>
[src]

impl<N: Real> HasBoundingVolume<N, AABB<N>> for ConvexPolygon<N>
[src]

impl<N: Real> HasBoundingVolume<N, AABB<N>> for Cuboid<N>
[src]

impl<N: Real> HasBoundingVolume<N, AABB<N>> for Plane<N>
[src]

impl<N: Real> HasBoundingVolume<N, AABB<N>> for Polyline<N>
[src]

impl<N: Real> HasBoundingVolume<N, AABB<N>> for dyn Shape<N>
[src]

impl<N: Real> HasBoundingVolume<N, AABB<N>> for Capsule<N>
[src]

impl<N: Real> HasBoundingVolume<N, AABB<N>> for Segment<N>
[src]

impl<N: Real> HasBoundingVolume<N, AABB<N>> for HeightField<N>
[src]

impl<N: Real> BoundingVolume<N> for AABB<N>
[src]

impl<'a, N: Real, T: Clone> SimultaneousVisitor<T, AABB<N>> for AABBSetsInterferencesCollector<'a, N, T>
[src]

impl<'a, N: Real, S: CompositeShape<N> + PointQuery<N>> BestFirstVisitor<N, usize, AABB<N>> for CompositeClosestPointVisitor<'a, N, S>
[src]

The result of a best-fist traversal.

impl<N: Real> PointQuery<N> for AABB<N>
[src]

impl<N: Real> RayCast<N> for AABB<N>
[src]

Tests whether a ray intersects this transformed shape.

impl<N: Clone + Real> Clone for AABB<N>
[src]

Performs copy-assignment from source. Read more

impl<N: PartialEq + Real> PartialEq<AABB<N>> for AABB<N>
[src]

impl<N: Debug + Real> Debug for AABB<N>
[src]

Auto Trait Implementations

impl<N> Send for AABB<N> where
    N: Scalar

impl<N> Sync for AABB<N> where
    N: Scalar

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> Downcast for T where
    T: Any

impl<T> Same for T

Should always be Self