[−][src]Struct ultraviolet::geometry::Aabbu
An axis-aligned bounding box
Fields
min: Vec3umax: Vec3uImplementations
impl Aabbu[src]
#[must_use]pub fn iter(&self) -> AabbuLinearIteratorⓘNotable traits for AabbuLinearIterator
impl Iterator for AabbuLinearIterator type Item = Vec3u;[src]
Notable traits for AabbuLinearIterator
impl Iterator for AabbuLinearIterator type Item = Vec3u;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ⓘNotable traits for AabbuLinearIterator
impl Iterator for AabbuLinearIterator type Item = Vec3u;[src]
Notable traits for AabbuLinearIterator
impl Iterator for AabbuLinearIterator type Item = Vec3u;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]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,