Struct collision::Aabb3 [] [src]

pub struct Aabb3<S> {
    pub min: Point3<S>,
    pub max: Point3<S>,
}

A three-dimensional AABB, aka a rectangular prism.

Fields

Minimum point of the AABB

Maximum point of the AABB

Methods

impl<S: BaseNum> Aabb3<S>
[src]

[src]

Construct a new axis-aligned bounding box from two points.

[src]

Compute corners.

Trait Implementations

impl<S> ComputeBound<Aabb3<S>> for Cylinder<S> where
    S: BaseFloat
[src]

[src]

Compute the bounding volume

impl<S> ComputeBound<Aabb3<S>> for Capsule<S> where
    S: BaseFloat
[src]

[src]

Compute the bounding volume

impl<S> ComputeBound<Aabb3<S>> for Cuboid<S> where
    S: BaseFloat
[src]

[src]

Compute the bounding volume

impl<S> ComputeBound<Aabb3<S>> for Cube<S> where
    S: BaseFloat
[src]

[src]

Compute the bounding volume

impl<S> ComputeBound<Aabb3<S>> for ConvexPolyhedron<S> where
    S: BaseFloat
[src]

[src]

Compute the bounding volume

impl<S> ComputeBound<Aabb3<S>> for Primitive3<S> where
    S: BaseFloat
[src]

[src]

Compute the bounding volume

impl<S> ComputeBound<Aabb3<S>> for Quad<S> where
    S: BaseFloat
[src]

[src]

Compute the bounding volume

impl<S> ComputeBound<Aabb3<S>> for Sphere<S> where
    S: BaseFloat
[src]

[src]

Compute the bounding volume

impl<S: Copy> Copy for Aabb3<S>
[src]

impl<S: Clone> Clone for Aabb3<S>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<S: PartialEq> PartialEq for Aabb3<S>
[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<S: BaseNum> Aabb for Aabb3<S>
[src]

Scalar type

Vector type

Point type

[src]

Create a new AABB using two points as opposing corners.

[src]

Return a shared reference to the point nearest to (-inf, -inf).

[src]

Return a shared reference to the point nearest to (inf, inf).

[src]

Add a margin of the given width around the AABB, returning a new AABB.

[src]

Apply an arbitrary transform to the corners of this bounding box, return a new conservative bound. Read more

[src]

Create a new empty AABB

[src]

Return the dimensions of this AABB.

[src]

Return the volume this AABB encloses.

[src]

Return the center point of this AABB.

[src]

Returns a new AABB that is grown to include the given point.

[src]

Add a vector to every point in the AABB, returning a new AABB.

[src]

Multiply every point in the AABB by a scalar, returning a new AABB.

[src]

Multiply every point in the AABB by a vector, returning a new AABB.

impl<S: BaseNum> Debug for Aabb3<S>
[src]

[src]

Formats the value using the given formatter. Read more

impl<S: BaseNum> Contains<Point3<S>> for Aabb3<S>
[src]

[src]

Containment test

impl<S: BaseNum> Contains<Aabb3<S>> for Aabb3<S>
[src]

[src]

Containment test

impl<S: BaseFloat> Contains<Sphere<S>> for Aabb3<S>
[src]

[src]

Containment test

impl<S: BaseNum> Contains<Line3<S>> for Aabb3<S>
[src]

[src]

Containment test

impl<S: BaseNum> Union for Aabb3<S>
[src]

Union shape created

[src]

Build the union shape of self and the given shape.

impl<S: BaseFloat> Union<Sphere<S>> for Aabb3<S>
[src]

Union shape created

[src]

Build the union shape of self and the given shape.

impl<S: BaseFloat> Continuous<Aabb3<S>> for Ray3<S>
[src]

Result returned by the intersection test

[src]

Intersection test

impl<S: BaseFloat> Continuous<Ray3<S>> for Aabb3<S>
[src]

Result returned by the intersection test

[src]

Intersection test

impl<S: BaseFloat> Discrete<Aabb3<S>> for Ray3<S>
[src]

[src]

Intersection test

impl<S: BaseFloat> Discrete<Ray3<S>> for Aabb3<S>
[src]

[src]

Intersection test

impl<S: BaseFloat> Discrete<Aabb3<S>> for Aabb3<S>
[src]

[src]

Intersection test

impl<S: BaseFloat> PlaneBound<S> for Aabb3<S>
[src]

[src]

Classify the spatial relation with a plane.

[src]

Classify the relation with a projection matrix.

impl<S: BaseNum> SurfaceArea for Aabb3<S>
[src]

Result type returned from surface area computation

[src]

Compute surface area

impl<S: BaseFloat> Contains<Aabb3<S>> for Sphere<S>
[src]

[src]

Containment test

impl<S: BaseFloat> Union<Aabb3<S>> for Sphere<S>
[src]

Union shape created

[src]

Build the union shape of self and the given shape.

Auto Trait Implementations

impl<S> Send for Aabb3<S> where
    S: Send

impl<S> Sync for Aabb3<S> where
    S: Sync