Advertisement
casencty

Function_overlap

Oct 3rd, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.18 KB | None | 0 0
  1. -- renvoie true si les coordonnes de deux rectangles se superposent
  2. function overlap(x,y,l,h,x2,y2,l2,h2)
  3.     return ((x<x2+l2) and (x2<x+l)) and ((y<y2+h2) and (y2<y+h))  
  4. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement