pub fn rgb_to_xyz(rgb: &[Float; 3], xyz: &mut [Float; 3]) {
    xyz[0] = 0.412_453 * rgb[0] + 0.357_580 * rgb[1] + 0.180_423 * rgb[2];
    xyz[1] = 0.212_671 * rgb[0] + 0.715_160 * rgb[1] + 0.072_169 * rgb[2];
    xyz[2] = 0.019_334 * rgb[0] + 0.119_193 * rgb[1] + 0.950_227 * rgb[2];
}
/// Calculate XYZ representation from RGB coefficients.
Calculate XYZ representation from RGB coefficients.
Calculate XYZ representation from RGB coefficients .
pub fn rgb_to_xyz(rgb: &[Float; 3], xyz: &mut [Float; 3]) {
    xyz[0] = 0.412_453 * rgb[0] + 0.357_580 * rgb[1] + 0.180_423 * rgb[2];
    xyz[1] = 0.212_671 * rgb[0] + 0.715_160 * rgb[1] + 0.072_169 * rgb[2];
    xyz[2] = 0.019_334 * rgb[0] + 0.119_193 * rgb[1] + 0.950_227 * rgb[2];
}
pub fn rgb_to_xyz ( rgb : & [ Float ; 3 ] , xyz : & mut [ Float ; 3 ] ) { xyz [ 0 ] = 0.412_453 * rgb [ 0 ] + 0.357_580 * rgb [ 1 ] + 0.180_423 * rgb [ 2 ] ; xyz [ 1 ] = 0.212_671 * rgb [ 0 ] + 0.715_160 * rgb [ 1 ] + 0.072_169 * rgb [ 2 ] ; xyz [ 2 ] = 0.019_334 * rgb [ 0 ] + 0.119_193 * rgb [ 1 ] + 0.950_227 * rgb [ 2 ] ; }
Calculate XYZ representation from RGB coefficients.
Calculate XYZ representation from RGB coefficients .
rgb
&[Float; 3]
xyz
&mut [Float; 3]