}
public static CIEXYZ convertRGB2XYZ(double r, double g, double b) {
Vector3 rgb = new Vector3(linearize(r), linearize(g), linearize(b));
Vector3 xyz = sRGBLin_TO_XYZ.times(rgb);
return new CIEXYZ(xyz.x(), xyz.y(), xyz.z());
}
public static CIEXYZ convertRGB2XYZ(RGB rgb) {
return convertRGB2XYZ(rgb.r(), rgb.g(), rgb.b());
}