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