[][src]Trait pbrt::core::interaction::Interaction

pub trait Interaction {
    fn is_surface_interaction(&self) -> bool;
fn is_medium_interaction(&self) -> bool;
fn spawn_ray(&self, d: &Vector3f) -> Ray;
fn get_p(&self) -> Point3f;
fn get_time(&self) -> Float;
fn get_p_error(&self) -> Vector3f;
fn get_wo(&self) -> Vector3f;
fn get_n(&self) -> Normal3f;
fn get_medium_interface(&self) -> Option<Arc<MediumInterface>>; }

Required Methods

Implementors

impl Interaction for MediumInteraction
[src]

impl<'a> Interaction for EndpointInteraction<'a>
[src]

impl<'p, 's> Interaction for SurfaceInteraction<'p, 's>
[src]