[][src]Struct pbrt::lights::spot::SpotLight

pub struct SpotLight {
    pub p_light: Point3f,
    pub i: Spectrum,
    pub cos_total_width: Float,
    pub cos_falloff_start: Float,
    pub flags: u8,
    pub n_samples: i32,
    pub medium_interface: MediumInterface,
    pub light_to_world: Transform,
    pub world_to_light: Transform,


p_light: Point3fi: Spectrumcos_total_width: Floatcos_falloff_start: Floatflags: u8n_samples: i32medium_interface: MediumInterfacelight_to_world: Transformworld_to_light: Transform


impl SpotLight[src]

pub fn new(
    light_to_world: &Transform,
    medium_interface: &MediumInterface,
    i: &Spectrum,
    total_width: Float,
    falloff_start: Float
) -> Self

pub fn falloff(&self, w: &Vector3f) -> Float[src]

Trait Implementations

impl Light for SpotLight[src]

fn le(&self, _ray: &mut Ray) -> Spectrum[src]

Default implementation returns no emitted radiance for a ray that escapes the scene bounds.

impl Clone for SpotLight[src]

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for SpotLight

impl Sync for SpotLight

Blanket Implementations

impl<T> From for T[src]

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

impl<T> Any for T where
    T: 'static + ?Sized

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

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

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

The type returned in the event of a conversion error.

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.