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