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