Exemple #1
0
 public bool IsInside(aabb other)
 {
     return(ll.x > other.ll.x && ll.y > other.ll.y && ur.x < other.ur.x && ur.y < other.ur.y);
 }
Exemple #2
0
 public bool Intersects(aabb other)
 {
     return(!(ll.x > other.ur.x && ur.x < other.ll.x) && !(ll.y > other.ur.y && ur.y < other.ll.y));
 }