pub struct Bounds3i {
    pub p_min: Point3i,
    pub p_max: Point3i,
}Fields§
§p_min: Point3i§p_max: Point3iImplementations§
Source§impl Bounds3i
 
impl Bounds3i
pub fn new(p1: Point3i, p2: Point3i) -> Self
pub fn corner(&self, corner: u8) -> Point3i
pub fn diagonal(&self) -> Vector3i
pub fn surface_area(&self) -> i32
pub fn maximum_extent(&self) -> u8
pub fn offset(&self, p: &Point3i) -> Vector3i
pub fn bounding_sphere(b: &Bounds3f, center: &mut Point3f, radius: &mut Float)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bounds3i
impl RefUnwindSafe for Bounds3i
impl Send for Bounds3i
impl Sync for Bounds3i
impl Unpin for Bounds3i
impl UnwindSafe for Bounds3i
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more