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

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.

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.

Trait Implementations

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

Formats the value using the given formatter. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Returns a point inside of this bounding volume. This is ideally its center.

Checks if this bounding volume intersect with another one.

Checks if this bounding volume contains another one.

Merges this bounding volume with another one. The merge is done in-place.

Merges this bounding volume with another one.

Enlarges this bounding volume.

Creates a new, enlarged version, of this bounding volume.

Tighten this bounding volume.

Creates a new, tightened version, of this bounding volume.

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

The bounding volume of self transformed by m.

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

The bounding volume of self transformed by m.

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

The bounding volume of self transformed by m.

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

The bounding volume of self transformed by m.

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

The bounding volume of self transformed by m.

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

The bounding volume of self transformed by m.

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

The bounding volume of self transformed by m.

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

The bounding volume of self transformed by m.

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

Projects a point on self transformed by m.

Projects a point on the boundary of self transformed by m and retuns the id of the feature the point was projected on. Read more

Computes the minimal distance between a point and self transformed by m.

Tests if the given point is inside of self transformed by m.

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

Computes the time of impact between this transform shape and a ray.

Computes the time of impact, and normal between this transformed shape and a ray.

Tests whether a ray intersects this transformed shape.

Auto Trait Implementations

impl<N> Send for AABB<N>

impl<N> Sync for AABB<N>