[][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.


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


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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.