Struct tessellation::BoundingBox [] [src]

pub struct BoundingBox<S> where
    S: Debug + Real
{ pub min: Point<S, U3>, pub max: Point<S, U3>, }

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> BoundingBox<S> where
    S: Real + Float
[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> PartialEq<BoundingBox<S>> for BoundingBox<S> where
    S: PartialEq<S> + Debug + Real
[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> Clone for BoundingBox<S> where
    S: Clone + Debug + Real
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<S> Send for BoundingBox<S>

impl<S> Sync for BoundingBox<S>