Struct rust_3d::BoundingBox3D [] [src]

pub struct BoundingBox3D { /* fields omitted */ }

BoundingBox3D, an axis aligned bounding box within 3D space

Methods

impl BoundingBox3D
[src]

Creates a new BoundingBox3D with the given min and max positions

Creates a new BoundBox3D which contains all the given positions

Returns the minimum position of the bounding box

Returns the maximum position of the bounding box

Returns the size the bounding box within the x-dimension

Returns the size the bounding box within the y-dimension

Returns the size the bounding box within the z-dimension

Returns the center of the bounding box

Tests whether this bounding box is within the other

Tests whether this bounding box contains a position

Tests whether this bounding box contains the other

Tests whether this bounding box and the other overlap in any way

Trait Implementations

impl Debug for BoundingBox3D
[src]

Formats the value using the given formatter.

impl Clone for BoundingBox3D
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for BoundingBox3D
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for BoundingBox3D
[src]

impl PartialOrd for BoundingBox3D
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for BoundingBox3D
[src]

This method returns an Ordering between self and other. Read more

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the maximum of two values. Read more

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the minimum of two values. Read more

impl Hash for BoundingBox3D
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl HasBoundingBox3D for BoundingBox3D
[src]

Should return the bounding box as a pair of two points. The first point should be the minimum for all coordinates, the second the maximum for all coordinates

impl HasDistanceTo<BoundingBox3D> for BoundingBox3D
[src]

Should return the sqr distance to other

The distance to other