Beispiel #1
0
 private bool IntersectsByX(BoundingSquare other)
 {
     return(other.Right >= this.Left && other.Left <= this.Right);
 }
Beispiel #2
0
 private bool IntersectsByY(BoundingSquare other)
 {
     return(other.Bottom >= this.Top && other.Top <= this.Bottom);
 }
Beispiel #3
0
 public bool IntersectsWith(BoundingSquare other)
 {
     return(IntersectsByX(other) && IntersectsByY(other));
 }