public double CalculateDistance(AttributedPoint nextPoint)
 {
     return(Math.Sqrt((this.X - nextPoint.X) * (this.X - nextPoint.X) + (this.Y - nextPoint.Y) * (this.Y - nextPoint.Y)));
 }
 public bool AreTheSame(AttributedPoint point, int precision)
 {
     return(Math.Round(this.X, precision).Equals(Math.Round(point.X, precision)) &&
            Math.Round(this.Y, precision).Equals(Math.Round(point.Y, precision)) &&
            Math.Round(this.Value, precision).Equals(Math.Round(point.Value, precision)));
 }