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

Trait Implementations

impl Mul<f32> for AABB
[src]

The resulting type after applying the * operator.

[src]

Expand AABB

impl Div<f32> for AABB
[src]

The resulting type after applying the / operator.

[src]

Compress AABB

impl Add<f32> for AABB
[src]

The resulting type after applying the + operator.

[src]

Extend AABB

impl Sub<f32> for AABB
[src]

The resulting type after applying the - operator.

[src]

Shrink AABB

impl<RHS: BoundedBy<AABB>> Contains<RHS> for AABB
[src]

[src]

Returns true if the current object contains the argument.

impl Bound for AABB
[src]

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

[src]

Rotate the AABB

[src]

Return a measure of the area of the object.

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.

[src]

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

[src]

Returns true if the current object contains the argument.

impl Intersects<Ray> for AABB
[src]

[src]

Returns an Intersection if one exists.

impl Intersects<Segment> for AABB
[src]

[src]

Returns an Intersection if one exists.

impl Copy for AABB
[src]

impl Clone for AABB
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for AABB
[src]

[src]

Formats the value using the given formatter.

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

[src]

Returns closest point on the AABB to q

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

The resulting type after applying the + operator.

[src]

Performs the + operation.

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

The resulting type after applying the - operator.

[src]

Performs the - operation.

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

[src]

Performs the += operation.

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

[src]

Performs the -= operation.

impl Shape for AABB
[src]

[src]

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

[src]

Sets the center of the shape to p.