[][src]Struct ultraviolet::geometry::Aabbu

#[repr(C)]pub struct Aabbu {
    pub min: Vec3u,
    pub max: Vec3u,
}

An axis-aligned bounding box

Fields

min: Vec3umax: Vec3u

Methods

impl Aabbu[src]

#[must_use]pub fn iter(&self) -> AabbuLinearIterator[src]

Same as iter_stride, but calls it with a stride of 1.0

impl Aabbu[src]

#[must_use]pub fn new(min: Vec3u, max: Vec3u) -> Self[src]

Creates a new axis-aligned bounding box.

min must be less than or equal to max. This is not checked by the library, but will result in bad results and/or unsigned integer underflow if it is not held.

#[must_use]pub fn contains(&self, target: Vec3u) -> bool[src]

#[must_use]pub fn intersects(&self, other: &Self) -> bool[src]

#[must_use]pub fn size(&self) -> Vec3u[src]

#[must_use]pub fn volume(&self) -> u32[src]

#[must_use]pub fn iter_stride(&self, stride: u32) -> AabbuLinearIterator[src]

Trait Implementations

impl Clone for Aabbu[src]

impl Copy for Aabbu[src]

impl Debug for Aabbu[src]

impl Default for Aabbu[src]

impl Eq for Aabbu[src]

impl Hash for Aabbu[src]

impl PartialEq<Aabbu> for Aabbu[src]

impl StructuralEq for Aabbu[src]

impl StructuralPartialEq for Aabbu[src]

Auto Trait Implementations

impl RefUnwindSafe for Aabbu

impl Send for Aabbu

impl Sync for Aabbu

impl Unpin for Aabbu

impl UnwindSafe for Aabbu

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.