[][src]Struct pbrt::core::spectrum::RGBSpectrum

pub struct RGBSpectrum { /* fields omitted */ }

RGBSpectrum is a sample implemented with 3 values at red, green and blue points in the spectrum.

Methods

impl RGBSpectrum[src]

pub fn to_xyz(&self) -> [Float; 3][src]

extract this RGBSpectrum's value in the XYZ color space.

pub fn from_rgb(c: [Float; 3]) -> RGBSpectrum[src]

create an RGBSpectrum from the given tristimulus values in sRGB color space.

Trait Implementations

impl Clone for RGBSpectrum[src]

impl Debug for RGBSpectrum[src]

impl Default for RGBSpectrum[src]

impl From<f32> for RGBSpectrum[src]

impl PartialEq<RGBSpectrum> for RGBSpectrum[src]

impl StructuralPartialEq for RGBSpectrum[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.