public static RGBSpectrum Mul(RGBSpectrum left, RGBSpectrum right) { return(new RGBSpectrum(left.R * right.R, left.G * right.G, left.B * right.B)); }
public static RGBSpectrum Div(RGBSpectrum left, Float right) { return(new RGBSpectrum(left.R / right, left.G / right, left.B / right)); }
public static RGBSpectrum Mul(RGBSpectrum left, Float right) { return(new RGBSpectrum(left.R * right, left.G * right, left.B * right)); }
public static RGBSpectrum Sub(RGBSpectrum left, RGBSpectrum right) { return(new RGBSpectrum(left.R - right.R, left.G - right.G, left.B - right.B)); }
public static RGBSpectrum Add(RGBSpectrum left, RGBSpectrum right) { return(new RGBSpectrum(left.R + right.R, left.G + right.G, left.B + right.B)); }
public static RGBSpectrum Lerp(RGBSpectrum l, RGBSpectrum r, Float lPower) { return(l * lPower + r * (1.0f - lPower)); }
public static XYZSpectrum FromRGB(RGBSpectrum rgb) { return(SpectrumTools.RGBToXYZ(rgb)); }