[][src]Struct fontdue::AABB

pub struct AABB {
    pub xmin: f32,
    pub xmax: f32,
    pub ymin: f32,
    pub ymax: f32,
}

Axis aligned bounding box.

Fields

xmin: f32

Coordinate of the left-most edge.

xmax: f32

Coordinate of the right-most edge.

ymin: f32

Coordinate of the bottom-most edge.

ymax: f32

Coordinate of the top-most edge.

Implementations

impl AABB[src]

pub fn new(xmin: f32, xmax: f32, ymin: f32, ymax: f32) -> AABB[src]

Creates a new axis aligned bounding box

pub fn scale(&self, scale: f32) -> AABB[src]

Scales the bounding box by the given factor.

Trait Implementations

impl Clone for AABB[src]

impl Copy for AABB[src]

impl Debug for AABB[src]

impl Default for AABB[src]

impl PartialEq<AABB> for AABB[src]

impl StructuralPartialEq for AABB[src]

Auto Trait Implementations

impl Send for AABB

impl Sync for AABB

impl Unpin for AABB

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.