[][src]Struct pbrt::core::geometry::Bounds3i

pub struct Bounds3i {
    pub p_min: Point3i,
    pub p_max: Point3i,
}

Fields

p_min: Point3ip_max: Point3i

Implementations

impl Bounds3i[src]

pub fn new(p1: Point3i, p2: Point3i) -> Self[src]

pub fn corner(&self, corner: u8) -> Point3i[src]

pub fn diagonal(&self) -> Vector3i[src]

pub fn surface_area(&self) -> i32[src]

pub fn maximum_extent(&self) -> u8[src]

pub fn offset(&self, p: &Point3i) -> Vector3i[src]

pub fn bounding_sphere(b: &Bounds3f, center: &mut Point3f, radius: &mut Float)[src]

Trait Implementations

impl Clone for Bounds3i[src]

impl Copy for Bounds3i[src]

impl Debug for Bounds3i[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.