Esempio n. 1
0
 public double GetDistanceSquare(CieLab other)
 {
     double deltaL = this.L - other.L;
     double deltaA = this.A - other.A;
     double deltaB = this.B - other.B;
     return deltaL * deltaL + deltaA * deltaA + deltaB * deltaB;
 }
Esempio n. 2
0
        public double GetDistanceSquare(CieLab other)
        {
            double deltaL = this.L - other.L;
            double deltaA = this.A - other.A;
            double deltaB = this.B - other.B;

            return(deltaL * deltaL + deltaA * deltaA + deltaB * deltaB);
        }
Esempio n. 3
0
 public double GetDistance(CieLab other)
 {
     double deltaL = this.L - other.L;
     double deltaA = this.A - other.A;
     double deltaB = this.B - other.B;
     double distance = deltaL * deltaL + deltaA * deltaA + deltaB * deltaB;
     return Math.Sqrt(distance);
 }
Esempio n. 4
0
        public double GetDistance(CieLab other)
        {
            double deltaL   = this.L - other.L;
            double deltaA   = this.A - other.A;
            double deltaB   = this.B - other.B;
            double distance = deltaL * deltaL + deltaA * deltaA + deltaB * deltaB;

            return(Math.Sqrt(distance));
        }