public bool Remove(Point point)
    {
      if (List.Contains(point) == false)
      {
        return false;
      }

      List.Remove(point);

      return true;
    }
Exemple #2
0
 public Size(Point location) : this(location.X, location.Y) {}
Exemple #3
0
 public bool Contains(Point point, Matrix matrix)
 {
   return Contains(point.X, point.Y, matrix);
 }
Exemple #4
0
 public bool Contains(Point point)
 {
   return point.X >= _location.X && point.Y >= _location.Y && point.X <= _location.X + _size.Width &&
          point.Y <= _location.Y + _size.Height;
 }
Exemple #5
0
 public Rect(double x, double y, double w, double h)
 {
   _location = new Point(x, y);
   _size = new Size(w, h);
 }
Exemple #6
0
 public Rect(Point location, Size size) : this(location.X, location.Y, size.Width, size.Height) {}
 public void Insert(int index, Point point)
 {
   List.Insert(index, point);
 }
 public int IndexOf(Point point)
 {
   return List.IndexOf(point);
 }
 public void CopyTo(Point[] array, int arrayIndex)
 {
   List.CopyTo(array, arrayIndex);
 }
 public bool Contains(Point point)
 {
   return List.Contains(point);
 }
 public void Add(Point point)
 {
   List.Add(point);
 }