Пример #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;
 }
Пример #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);
        }
Пример #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);
 }
Пример #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));
        }