[−][src]Struct pbrt::core::spectrum::RGBSpectrum
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]
fn clone(&self) -> RGBSpectrum
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RGBSpectrum
[src]
impl Default for RGBSpectrum
[src]
fn default() -> RGBSpectrum
[src]
impl From<f32> for RGBSpectrum
[src]
impl PartialEq<RGBSpectrum> for RGBSpectrum
[src]
fn eq(&self, other: &RGBSpectrum) -> bool
[src]
fn ne(&self, other: &RGBSpectrum) -> bool
[src]
impl StructuralPartialEq for RGBSpectrum
[src]
Auto Trait Implementations
impl RefUnwindSafe for RGBSpectrum
impl Send for RGBSpectrum
impl Sync for RGBSpectrum
impl Unpin for RGBSpectrum
impl UnwindSafe for RGBSpectrum
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,