Exemple #1
0
 public bool Equals(LPoint obj)
 {
     if (X == obj.X && Y == obj.Y) return true;
     return false;
 }
Exemple #2
0
        public void MergeRectWithPoint(LPoint point)
        {
            long x_min = Math.Min(m_x1, point.X);
            long y_min = Math.Min(m_y1, point.Y);
            long x_max = Math.Max(m_x2, point.X);
            long y_max = Math.Max(m_y2, point.Y);

            m_x1 = x_min;
            m_x2 = x_max;
            m_y1 = y_min;
            m_y2 = y_max;
        }