Struct rust_3d::BoundingBox3D [] [src]

pub struct BoundingBox3D { /* fields omitted */ }

BoundingBox3D, an axis aligned bounding box within 3D space

Methods

impl BoundingBox3D
[src]

[src]

Creates a new BoundingBox3D with the given min and max positions

[src]

Creates a new BoundBox3D which contains all the given positions

[src]

Returns the minimum position of the bounding box

[src]

Returns the maximum position of the bounding box

[src]

Returns the size the bounding box within the x-dimension

[src]

Returns the size the bounding box within the y-dimension

[src]

Returns the size the bounding box within the z-dimension

[src]

Returns the center of the bounding box

[src]

Tests whether this bounding box is within the other

[src]

Tests whether this bounding box contains a position

[src]

Tests whether this bounding box contains the other

[src]

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

Trait Implementations

impl HasDistanceTo<BoundingBox3D> for Is3D
[src]

[src]

Should return the sqr distance to other

[src]

The distance to other

impl From<BoundingBox3D> for FilterBox3D
[src]

[src]

Performs the conversion.

impl Debug for BoundingBox3D
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for BoundingBox3D
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for BoundingBox3D
[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 Eq for BoundingBox3D
[src]

impl PartialOrd for BoundingBox3D
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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]

[src]

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

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Hash for BoundingBox3D
[src]

[src]

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

1.3.0
[src]

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

impl Default for BoundingBox3D
[src]

[src]

Returns the "default value" for a type. Read more

impl HasBoundingBox3D for BoundingBox3D
[src]

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

[src]

Should return the sqr distance to other

[src]

The distance to other

impl From<BoundingBox3D> for Box3D
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for BoundingBox3D

impl Sync for BoundingBox3D