Struct three_d::core::AxisAlignedBoundingBox [−][src]
pub struct AxisAlignedBoundingBox { /* fields omitted */ }
Expand description
A bounding box that aligns with the x, y and z axes.
Implementations
Constructs a new bounding box and expands it such that all of the given positions are contained inside the bounding box. A position consisting of an x, y and z coordinate corresponds to three consecutive value in the positions array.
Constructs a new bounding box and expands it such that all of the given positions transformed with the given transformation are contained inside the bounding box. A position consisting of an x, y and z coordinate corresponds to three consecutive value in the positions array.
Returns true if the bounding box is empty (ie. constructed by AxisAlignedBoundingBox::EMPTY).
Returns true if the bounding box is infinitely large (ie. constructed by AxisAlignedBoundingBox::INFINITE).
Expands the bounding box such that all of the given positions are contained inside the bounding box. A position consisting of an x, y and z coordinate corresponds to three consecutive value in the positions array.
Expands the bounding box such that all of the given positions transformed with the given transformation are contained inside the bounding box. A position consisting of an x, y and z coordinate corresponds to three consecutive value in the positions array.
Expand the bounding box such that it also contains the given other bounding box.
Transforms the bounding box by the given transformation.
Note: Use new_with_transformed_positions instead of new_with_positions followed by this method to create a more tight bounding box.
The distance from position to the point in this bounding box that is closest to position.
The distance from position to the point in this bounding box that is furthest away from position.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AxisAlignedBoundingBox
impl Send for AxisAlignedBoundingBox
impl Sync for AxisAlignedBoundingBox
impl Unpin for AxisAlignedBoundingBox
impl UnwindSafe for AxisAlignedBoundingBox
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more