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

pub struct Bounds2f {
    pub p_min: Point2f,
    pub p_max: Point2f,
}

Fields

p_min: Point2fp_max: Point2f

Implementations

impl Bounds2f[src]

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

pub fn area(&self) -> Float[src]

pub fn lerp(&self, t: Point2f) -> Point2f[src]

pub fn offset(&self, p: Point2f) -> Vector2f[src]

Trait Implementations

impl Clone for Bounds2f[src]

impl Copy for Bounds2f[src]

impl Debug for Bounds2f[src]

impl Default for Bounds2f[src]

Auto Trait Implementations

impl RefUnwindSafe for Bounds2f

impl Send for Bounds2f

impl Sync for Bounds2f

impl Unpin for Bounds2f

impl UnwindSafe for Bounds2f

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.