Beispiel #1
0
 public bool Contains(DrawingPoint point)
 {
     return((double)point.X >= (double)this.X && (double)point.X <= (double)this.X + (double)this.Width && ((double)point.Y >= (double)this.Y && (double)point.Y <= (double)this.Y + (double)this.Width));
 }
Beispiel #2
0
 public bool Contains(DrawingPoint point)
 {
     return(point.X >= this.X && point.X <= this.X + this.Width && (point.Y >= this.Y && point.Y <= this.Y + this.Width));
 }
Beispiel #3
0
 public static DrawingPoint NextDPoint(this Random random, DrawingPoint min, DrawingPoint max)
 {
     return(new DrawingPoint(random.Next(min.X, max.X), random.Next(min.Y, max.Y)));
 }
Beispiel #4
0
 public bool Contains(DrawingPoint point)
 {
     return((double)point.X >= (double)this._left && (double)point.X <= (double)this._right && ((double)point.Y >= (double)this._top && (double)point.Y <= (double)this._bottom));
 }
Beispiel #5
0
 public bool Contains(DrawingPoint point)
 {
     return(point.X >= this._left && point.X <= this._right && (point.Y >= this._top && point.Y <= this._bottom));
 }