private static Vector3 ToNormalizedVector(RgbColor color) { return(new Vector3(color.R * RefX, color.G * RefY, color.B * RefZ)); }
public static double Compare(RgbColor color1, RgbColor color2) { return(Vector3.Distance(ToNormalizedVector(color1), ToNormalizedVector(color2)) / 441.6729559300637D); }