Struct mgf::AABB[][src]

pub struct AABB {
    pub c: Point3<f32>,
    pub r: Vector3<f32>,
}

An Axis Aligned Bounding Box.

AABBs are closed boxes aligned to the axes of the coordinate system. AABBs are described by a point and three half widths.

AABBs being closed means that a point lying on the surface of the AABB is considered contained by the AABB.

Fields

Methods

impl AABB
[src]

Create a new AABB.

Trait Implementations

impl Mul<f32> for AABB
[src]

The resulting type after applying the * operator.

Expand AABB

impl Div<f32> for AABB
[src]

The resulting type after applying the / operator.

Compress AABB

impl Add<f32> for AABB
[src]

The resulting type after applying the + operator.

Extend AABB

impl Sub<f32> for AABB
[src]

The resulting type after applying the - operator.

Shrink AABB

impl Bound for AABB
[src]

The returned AABB is the smallest volume possible that encloses both arguments. At least I think, I Can't remember if that claim is true. I'll have to check sometime.

Return a measure of the area of the object.

impl BoundedBy<AABB> for Triangle
[src]

impl BoundedBy<AABB> for Rectangle
[src]

impl BoundedBy<AABB> for Sphere
[src]

impl BoundedBy<AABB> for Capsule
[src]

impl BoundedBy<AABB> for OBB
[src]

impl BoundedBy<Sphere> for AABB
[src]

Taking the bounding sphere of an AABB creates a sphere that contains all of the extreme points of the AABB. Thus, a bounding sphere for an AABB created from another bounding sphere will be larger in size than the original sphere.

impl BoundedBy<AABB> for Component
[src]

impl BoundedBy<AABB> for Compound
[src]

impl Overlaps<AABB> for AABB
[src]

Returns true if the two objects overlap and false otherwise.

impl Overlaps<Sphere> for AABB
[src]

Returns true if the two objects overlap and false otherwise.

impl Overlaps<AABB> for Sphere
[src]

Returns true if the two objects overlap and false otherwise.

impl Contains<Point3<f32>> for AABB
[src]

Returns true if the current object contains the argument.

impl Contains<AABB> for AABB
[src]

Returns true if the current object contains the argument.

impl<P: Particle> Intersects<AABB> for P
[src]

Returns an Intersection if one exists.

impl Copy for AABB
[src]

impl Clone for AABB
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for AABB
[src]

Formats the value using the given formatter. Read more

impl Add<Vector3<f32>> for AABB
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl Sub<Vector3<f32>> for AABB
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl AddAssign<Vector3<f32>> for AABB
[src]

Performs the += operation.

impl SubAssign<Vector3<f32>> for AABB
[src]

Performs the -= operation.

impl Shape for AABB
[src]

Returns the center of mass of the geometry, assuming a regular density.

Returns the closest point on the shape to the given point.

Sets the center of the shape to p.

impl Volumetric for AABB
[src]

Rotate the bound in place. This is useless for spheres.

Rotates the object around a point.

impl Convex for AABB
[src]

Returns the point on the object that produces the greatest dot product with the supplied axis. The axis is expected to be normalized. Read more

Auto Trait Implementations

impl Send for AABB

impl Sync for AABB