[−][src]Struct pbrt::core::spectrum::RGBSpectrum
Fields
c: [Float; 3]
Implementations
impl RGBSpectrum
[src]
pub fn new(v: Float) -> Self
[src]
pub fn rgb(r: Float, g: Float, b: Float) -> RGBSpectrum
[src]
pub fn from_srgb(rgb: [u8; 3]) -> RGBSpectrum
[src]
pub fn inverse_gamma_correct(&self) -> RGBSpectrum
[src]
pub fn from_rgb(rgb: &[Float; 3]) -> RGBSpectrum
[src]
pub fn to_rgb(&self, rgb: &mut [Float; 3])
[src]
pub fn to_xyz(&self, xyz: &mut [Float; 3])
[src]
pub fn from_xyz(xyz: &[Float; 3], _spectrum_type: SpectrumType) -> RGBSpectrum
[src]
pub fn y(&self) -> Float
[src]
pub fn from_sampled(lambda: &[Float], v: &[Float], n: i32) -> RGBSpectrum
[src]
pub fn is_black(&self) -> bool
[src]
pub fn sqrt(&self) -> RGBSpectrum
[src]
pub fn exp(&self) -> RGBSpectrum
[src]
pub fn clamp(&self, low: Float, high: Float) -> RGBSpectrum
[src]
Clamp spectrum to lie between the values low and high. Use (0.0 as Float, std::f32::INFINITY as Float) if there are no specific values.
pub fn max_component_value(&self) -> Float
[src]
pub fn has_nans(&self) -> bool
[src]
Trait Implementations
impl Add<RGBSpectrum> for RGBSpectrum
[src]
type Output = RGBSpectrum
The resulting type after applying the +
operator.
fn add(self, rhs: RGBSpectrum) -> RGBSpectrum
[src]
impl AddAssign<RGBSpectrum> for RGBSpectrum
[src]
fn add_assign(&mut self, rhs: RGBSpectrum)
[src]
impl Clone for RGBSpectrum
[src]
fn clone(&self) -> RGBSpectrum
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for RGBSpectrum
[src]
impl Debug for RGBSpectrum
[src]
impl Default for RGBSpectrum
[src]
fn default() -> RGBSpectrum
[src]
impl Div<RGBSpectrum> for RGBSpectrum
[src]
type Output = RGBSpectrum
The resulting type after applying the /
operator.
fn div(self, rhs: RGBSpectrum) -> RGBSpectrum
[src]
impl Div<f32> for RGBSpectrum
[src]
type Output = RGBSpectrum
The resulting type after applying the /
operator.
fn div(self, rhs: Float) -> RGBSpectrum
[src]
impl DivAssign<f32> for RGBSpectrum
[src]
fn div_assign(&mut self, rhs: Float)
[src]
impl From<f32> for RGBSpectrum
[src]
impl ImageTextureConvert<RGBSpectrum> for ImageTexture<Spectrum>
[src]
fn convert_out(from: &Spectrum, to: &mut Spectrum)
[src]
impl Index<RGBEnum> for RGBSpectrum
[src]
impl IndexMut<RGBEnum> for RGBSpectrum
[src]
impl Mul<RGBSpectrum> for RGBSpectrum
[src]
type Output = RGBSpectrum
The resulting type after applying the *
operator.
fn mul(self, rhs: RGBSpectrum) -> RGBSpectrum
[src]
impl Mul<RGBSpectrum> for Float
[src]
type Output = RGBSpectrum
The resulting type after applying the *
operator.
fn mul(self, rhs: RGBSpectrum) -> RGBSpectrum
[src]
impl Mul<f32> for RGBSpectrum
[src]
type Output = RGBSpectrum
The resulting type after applying the *
operator.
fn mul(self, rhs: Float) -> RGBSpectrum
[src]
impl MulAssign<RGBSpectrum> for RGBSpectrum
[src]
fn mul_assign(&mut self, rhs: RGBSpectrum)
[src]
impl Neg for RGBSpectrum
[src]
type Output = RGBSpectrum
The resulting type after applying the -
operator.
fn neg(self) -> RGBSpectrum
[src]
impl PartialEq<RGBSpectrum> for RGBSpectrum
[src]
impl Sub<RGBSpectrum> for RGBSpectrum
[src]
type Output = RGBSpectrum
The resulting type after applying the -
operator.
fn sub(self, rhs: RGBSpectrum) -> RGBSpectrum
[src]
impl Texture<RGBSpectrum> for ImageTexture<Spectrum>
[src]
fn evaluate(&self, si: &SurfaceInteraction<'_>) -> Spectrum
[src]
impl Texture<RGBSpectrum> for MarbleTexture
[src]
fn evaluate(&self, si: &SurfaceInteraction<'_>) -> Spectrum
[src]
impl Zero 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> 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>,