Ejemplo 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;
 }
Ejemplo 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);
        }
Ejemplo 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);
 }
Ejemplo 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));
        }