コード例 #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));
 }