Exemplo n.º 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);
 }
Exemplo n.º 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));
 }