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