Fields
p_min: Point3i
p_max: Point3i
Implementations
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more