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]

[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.

[src]

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

[src]

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

[src]

The center of this AABB.

[src]

The half extents of this AABB.

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

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

[src]

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

[src]

This method tests for !=.

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

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

[src]

Checks if this bounding volume intersect with another one.

[src]

Checks if this bounding volume contains another one.

[src]

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

[src]

Merges this bounding volume with another one.

[src]

Enlarges this bounding volume.

[src]

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

[src]

Tighten this bounding volume.

[src]

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

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

[src]

The bounding volume of self transformed by m.

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

[src]

The bounding volume of self transformed by m.

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

[src]

The bounding volume of self transformed by m.

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

[src]

The bounding volume of self transformed by m.

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

[src]

The bounding volume of self transformed by m.

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

[src]

The bounding volume of self transformed by m.

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

[src]

The bounding volume of self transformed by m.

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

[src]

The bounding volume of self transformed by m.

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

[src]

Projects a point on self transformed by m.

[src]

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

[src]

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

[src]

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

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

[src]

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

[src]

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

[src]

Tests whether a ray intersects this transformed shape.

Auto Trait Implementations

impl<N> Send for AABB<N>

impl<N> Sync for AABB<N>