pub struct Bounds3i {
pub p_min: Point3i,
pub p_max: Point3i,
}
Fields§
§p_min: Point3i
§p_max: Point3i
Implementations§
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 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