[−][src]Struct ultraviolet::geometry::Aabbi
An axis-aligned bounding box
Fields
min: Vec3imax: Vec3iImplementations
impl Aabbi[src]
#[must_use]pub fn iter(&self) -> AabbiLinearIteratorⓘNotable traits for AabbiLinearIterator
impl Iterator for AabbiLinearIterator type Item = Vec3i;[src]
Notable traits for AabbiLinearIterator
impl Iterator for AabbiLinearIterator type Item = Vec3i;Same as iter_stride, but calls it with a stride of 1.0
impl Aabbi[src]
#[must_use]pub fn new(min: Vec3i, max: Vec3i) -> 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: Vec3i) -> bool[src]
#[must_use]pub fn intersects(&self, other: &Self) -> bool[src]
#[must_use]pub fn size(&self) -> Vec3i[src]
#[must_use]pub fn volume(&self) -> i32[src]
#[must_use]pub fn iter_stride(&self, stride: i32) -> AabbiLinearIteratorⓘNotable traits for AabbiLinearIterator
impl Iterator for AabbiLinearIterator type Item = Vec3i;[src]
Notable traits for AabbiLinearIterator
impl Iterator for AabbiLinearIterator type Item = Vec3i;Trait Implementations
impl Clone for Aabbi[src]
impl Copy for Aabbi[src]
impl Debug for Aabbi[src]
impl Default for Aabbi[src]
impl Eq for Aabbi[src]
impl Hash for Aabbi[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<Aabbi> for Aabbi[src]
impl StructuralEq for Aabbi[src]
impl StructuralPartialEq for Aabbi[src]
Auto Trait Implementations
impl RefUnwindSafe for Aabbi
impl Send for Aabbi
impl Sync for Aabbi
impl Unpin for Aabbi
impl UnwindSafe for Aabbi
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>,