Struct arendur::lighting::LightSample
[−]
[src]
pub struct LightSample { pub radiance: RGBSpectrumf, pub pdf: Float, pub pfrom: Point3f, pub pto: Point3f, }
Results of a light's sampling evaluation
Fields
radiance: RGBSpectrumf
outgoing radiance
pdf: Float
pdf for this sample
pfrom: Point3f
outgoing point, parent frame
pto: Point3f
receiving point, parent frame
Methods
impl LightSample
[src]
fn wi(&self) -> Vector3f
get light direction vector wi
fn occluded<C: Composable + ?Sized>(&self, components: &C) -> bool
test if this light would be occulued by any components
in Composable
, assuming they are in the same world frame
fn apply_transform<T>(&self, t: &T) -> LightSample where
T: TransformExt,
T: TransformExt,
fn no_effect(&self) -> bool
Trait Implementations
impl Debug for LightSample
[src]
impl PartialEq for LightSample
[src]
fn eq(&self, __arg_0: &LightSample) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &LightSample) -> bool
This method tests for !=
.
impl Copy for LightSample
[src]
impl Clone for LightSample
[src]
fn clone(&self) -> LightSample
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more