[][src]Struct pbrt::core::interaction::InteractionCommon

pub struct InteractionCommon {
    pub p: Point3f,
    pub time: Float,
    pub p_error: Vector3f,
    pub wo: Vector3f,
    pub n: Normal3f,
    pub medium_interface: Option<Arc<MediumInterface>>,


p: Point3ftime: Floatp_error: Vector3fwo: Vector3fn: Normal3fmedium_interface: Option<Arc<MediumInterface>>


impl InteractionCommon[src]

pub fn spawn_ray(&self, d: &Vector3f) -> Ray[src]

pub fn spawn_ray_to_pnt(&self, p2: &Point3f) -> Ray[src]

pub fn spawn_ray_to(&self, it: &InteractionCommon) -> Ray[src]

pub fn get_medium(&self, w: &Vector3f) -> Option<Arc<Medium>>[src]

Trait Implementations

impl Clone for InteractionCommon[src]

impl Default for InteractionCommon[src]

Auto Trait Implementations

impl RefUnwindSafe for InteractionCommon

impl Send for InteractionCommon

impl Sync for InteractionCommon

impl Unpin for InteractionCommon

impl UnwindSafe for InteractionCommon

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.