BattleNet.Coordinate.Distance C# (CSharp) Метод

Distance() публичный Метод

public Distance ( Coordinate other ) : Double
other Coordinate
Результат Double
        public Double Distance(Coordinate other)
        {
            Double x2 = Math.Pow(m_x - other.X, 2.0);
            Double y2 = Math.Pow(m_y - other.Y, 2.0);
            Double distance = Math.Sqrt(x2 + y2);
            return distance;
        }