Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- renvoie true si les coordonnes de deux rectangles se superposent
- function overlap(x,y,l,h,x2,y2,l2,h2)
- return ((x<x2+l2) and (x2<x+l)) and ((y<y2+h2) and (y2<y+h))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement