Ejemplo n.º 1
0
 public double Distance(SimplePoint simplePoint)
 {
     return(Math.Sqrt(Math.Pow(m_x - simplePoint.m_x, 2) + Math.Pow(m_y - simplePoint.m_y, 2)));
 }
Ejemplo n.º 2
0
 public bool IsTheSame(SimplePoint otherPoint, double deltaPixels)
 {
     return(Distance(otherPoint) < deltaPixels);
 }
Ejemplo n.º 3
0
 public SimplePoint(SimplePoint otherPoint)
 {
     m_x = otherPoint.X;
     m_y = otherPoint.Y;
 }