utility.lua 205 B

123456789
  1. local utility = {}
  2. -- Check if point (x,y) is inside of rectangular object:
  3. function utility.isInside( x, y, ox, oy, ow, oh )
  4. return x > ox and y > oy and x < ox + ow and y < oy + oh
  5. end
  6. return utility