File util/geometry.lua

loveui is a love2d library to provide resuable GUI widgets to love2d developers.

Functions

pointinrect (point, rect) Returns whether a point is within a rectangle boundary


Functions

pointinrect (point, rect)
Returns whether a point is within a rectangle boundary

Parameters

  • point: A sized 2 array of x, y values
  • rect: A sized 4 array of x, y, w, h values

Valid XHTML 1.0!