Struct bbox::BoundingBox [] [src]

pub struct BoundingBox<S: Real + Debug> {
    pub min: Point3<S>,
    pub max: Point3<S>,
}

3D Bounding Box - defined by two diagonally opposing points.

Fields

X-Y-Z-Minimum corner of the box.

X-Y-Z-Maximum corner of the box.

Methods

impl<S: Float + Real> BoundingBox<S>
[src]

[src]

Returns an infinte sized box.

[src]

Returns a negatively infinte sized box.

[src]

Create a new Bounding Box by supplying two points.

[src]

Create a CSG Union of two Bounding Boxes.

[src]

Create a CSG Intersection of two Bounding Boxes.

[src]

Transform a Bounding Box - resulting in a enclosing axis aligned Bounding Box.

[src]

Dilate a Bounding Box by some amount in all directions.

[src]

Add a Point to a Bounding Box, e.g. expand the Bounding Box to contain that point.

[src]

Return the size of the Box.

[src]

Returns the approximate distance of p to the box. The result is guarateed to be not less than the euclidean distance of p to the box.

[src]

Return true if the Bounding Box contains p.

Trait Implementations

impl<S: Clone + Real + Debug> Clone for BoundingBox<S>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<S: Debug + Real + Debug> Debug for BoundingBox<S>
[src]

[src]

Formats the value using the given formatter. Read more

impl<S: PartialEq + Real + Debug> PartialEq for BoundingBox<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 !=.

Auto Trait Implementations

impl<S> Send for BoundingBox<S>

impl<S> Sync for BoundingBox<S>