isInRect.md 363 B

Checks if a point is in the rectangle or not.


Syntax:

isit = isInRect(x,y,rect)

Arguments:

  • (Number): The point x coords.
  • (Number): The point y coords.
  • (Table): The rectangle definition table, in this style: {x,y,w,h}.

  • Returns:

    • isit (Boolean): Is the point in the rectangle?