10 #ifndef MI_MATH_SPECTRUM_H
11 #define MI_MATH_SPECTRUM_H
93 #if defined(DEBUG) || (defined(_MSC_VER) && _MSC_VER <= 1310)
101 Float32 v = (Traits::has_signaling_NaN)
179 Spectrum_struct::operator=( s);
330 return Spectrum( lhs[0] + rhs[0], lhs[1] + rhs[1], lhs[2] + rhs[2]);
338 return Spectrum( lhs[0] - rhs[0], lhs[1] - rhs[1], lhs[2] - rhs[2]);
346 return Spectrum( lhs[0] * rhs[0], lhs[1] * rhs[1], lhs[2] * rhs[2]);
354 return Spectrum( lhs[0] / rhs[0], lhs[1] / rhs[1], lhs[2] / rhs[2]);
361 return Spectrum( -c[0], -c[1], -c[2]);
394 return Spectrum( c[0] * s, c[1] * s, c[2] * s);
401 return Spectrum( s * c[0], s * c[1], s* c[2]);
409 return Spectrum( c[0] * f, c[1] * f, c[2] * f);
434 return (c[0] != 0.0f) && (c[1] != 0.0f) && (c[2] != 0.0f);
441 return (c[0] != 0.0f) || (c[1] != 0.0f) || (c[2] != 0.0f);
482 clamp( c[1], low[1], high[1]),
483 clamp( c[2], low[2], high[2]));
492 clamp( c[1], low[1], high),
493 clamp( c[2], low[2], high));
502 clamp( c[1], low, high[1]),
503 clamp( c[2], low, high[2]));
511 clamp( c[1], low, high),
512 clamp( c[2], low, high));
642 lerp( c1[1], c2[1], t[1]),
643 lerp( c1[2], c2[2], t[2]));
657 lerp( c1[1], c2[1], t),
658 lerp( c1[2], c2[2], t));
760 sincos( a[0], s[0], c[0]);
761 sincos( a[1], s[1], c[1]);
762 sincos( a[2], s[2], c[2]);
877 #endif // MI_MATH_SPECTRUM_H