[][src]Struct rust_3d::Box2D

pub struct Box2D {
    pub center: Point2D,
    pub size_x: Positive,
    pub size_y: Positive,
}

Box2D, a box in 2D space

Fields

center: Point2Dsize_x: Positivesize_y: Positive

Implementations

impl Box2D[src]

pub fn min_p(&self) -> Point2D[src]

Returns the minimum position of the box

pub fn max_p(&self) -> Point2D[src]

Returns the maximum position of the box

pub fn sizes(&self) -> [Positive; 2][src]

Returns the sizes of the bounding box

Trait Implementations

impl Clone for Box2D[src]

impl Debug for Box2D[src]

impl Default for Box2D[src]

impl Eq for Box2D[src]

impl From<BoundingBox2D> for Box2D[src]

impl HasBoundingBox2D for Box2D[src]

impl HasBoundingBox2DMaybe for Box2D[src]

impl Hash for Box2D[src]

impl Is2D for Box2D[src]

impl IsBuildable2D for Box2D[src]

impl IsBuildableND for Box2D[src]

impl IsEditable2D for Box2D[src]

impl IsEditableND for Box2D[src]

impl IsMovable2D for Box2D[src]

impl IsND for Box2D[src]

impl IsScalable for Box2D[src]

impl Ord for Box2D[src]

impl PartialEq<Box2D> for Box2D[src]

impl PartialOrd<Box2D> for Box2D[src]

impl StructuralPartialEq for Box2D[src]

Auto Trait Implementations

impl RefUnwindSafe for Box2D

impl Send for Box2D

impl Sync for Box2D

impl Unpin for Box2D

impl UnwindSafe for Box2D

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.