Struct ami::BBox [] [src]

pub struct BBox<T: Copy + Clone + From<i32> + Neg<Output = T>> { /* fields omitted */ }

Bounding box

Methods

impl<T> BBox<T> where
    T: Copy + Clone + From<i32> + Add<Output = T> + Sub<Output = T> + AddAssign + SubAssign + MulAssign + DivAssign + Mul<Output = T> + Div<Output = T> + PartialOrd + Neg<Output = T> + Ord
[src]

[src]

Create an new empty BBox.

[src]

Create an new BBox at position p.

[src]

Extend the BBox

[src]

Check if BBox contains point p.

[src]

Get two opposite points that are the bounds of the BBox.

[src]

Get all 6 points or the BBox.

[src]

Get a positive and negative pair of opposite points that are the bounds of the BBox, based around a normal.

Trait Implementations

impl<T: Clone + Copy + Clone + From<i32> + Neg<Output = T>> Clone for BBox<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Copy + Copy + Clone + From<i32> + Neg<Output = T>> Copy for BBox<T>
[src]

impl<T> Debug for BBox<T> where
    T: Debug + Copy + Clone + From<i32> + Neg<Output = T>, 
[src]

[src]

Formats the value using the given formatter.