pub fn xyz_to_rgb(xyz: &[Float; 3], rgb: &mut [Float; 3]) {
    rgb[0] = 3.240_479 * xyz[0] - 1.537_150 * xyz[1] - 0.498_535 * xyz[2];
    rgb[1] = -0.969_256 * xyz[0] + 1.875_991 * xyz[1] + 0.041_556 * xyz[2];
    rgb[2] = 0.055_648 * xyz[0] - 0.204_043 * xyz[1] + 1.057_311 * xyz[2];
}
/// Calculate RGB coefficients from a XYZ representation.
Calculate RGB coefficients from a XYZ representation.
Calculate RGB coefficients from a XYZ representation .
pub fn xyz_to_rgb(xyz: &[Float; 3], rgb: &mut [Float; 3]) {
    rgb[0] = 3.240_479 * xyz[0] - 1.537_150 * xyz[1] - 0.498_535 * xyz[2];
    rgb[1] = -0.969_256 * xyz[0] + 1.875_991 * xyz[1] + 0.041_556 * xyz[2];
    rgb[2] = 0.055_648 * xyz[0] - 0.204_043 * xyz[1] + 1.057_311 * xyz[2];
}
pub fn xyz_to_rgb ( xyz : & [ Float ; 3 ] , rgb : & mut [ Float ; 3 ] ) { rgb [ 0 ] = 3.240_479 * xyz [ 0 ] - 1.537_150 * xyz [ 1 ] - 0.498_535 * xyz [ 2 ] ; rgb [ 1 ] = - 0.969_256 * xyz [ 0 ] + 1.875_991 * xyz [ 1 ] + 0.041_556 * xyz [ 2 ] ; rgb [ 2 ] = 0.055_648 * xyz [ 0 ] - 0.204_043 * xyz [ 1 ] + 1.057_311 * xyz [ 2 ] ; }
Calculate RGB coefficients from a XYZ representation.
Calculate RGB coefficients from a XYZ representation .
xyz
&[Float; 3]
rgb
&mut [Float; 3]