[][src]Struct pbrt::core::light::VisibilityTester

pub struct VisibilityTester<'a, 'b> {
    pub p0: Option<&'a InteractionCommon>,
    pub p1: Option<&'b InteractionCommon>,
}

VisibilityTesters are created by providing two Interaction objects, one for each end point of the shadow ray to be traced.

Fields

p0: Option<&'a InteractionCommon>p1: Option<&'b InteractionCommon>

Implementations

impl<'a, 'b> VisibilityTester<'a, 'b>[src]

pub fn unoccluded(&self, scene: &Scene) -> bool[src]

pub fn tr(&self, scene: &Scene, sampler: &mut Sampler) -> Spectrum[src]

Trait Implementations

impl<'a, 'b> Clone for VisibilityTester<'a, 'b>[src]

impl<'a, 'b> Default for VisibilityTester<'a, 'b>[src]

Auto Trait Implementations

impl<'a, 'b> RefUnwindSafe for VisibilityTester<'a, 'b>

impl<'a, 'b> Send for VisibilityTester<'a, 'b>

impl<'a, 'b> Sync for VisibilityTester<'a, 'b>

impl<'a, 'b> Unpin for VisibilityTester<'a, 'b>

impl<'a, 'b> UnwindSafe for VisibilityTester<'a, 'b>

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.