$inroundrect

From Scriptwiki
Jump to: navigation, search

Returns whether or not a point is in a round rectangle originating at the specified coordinates and extending W pixels wide and H pixes high.

$inrect(x,y,x2,y2,w1,h1,w2,h2)
  • X is the X coordinate you wish to check.
  • Y is the Y coordinate you wish to check.
  • X2 is the X coordinate at which the round rectangle originates.
  • Y2 is the Y coordinate at which the round rectangle originates.
  • W1 is the width of the rectangle.
  • H1 is the height of the rectangle.
  • W2 is the width of the ellipse used to draw the rounded corners.
  • H2 is the height of the ellipse used to draw the rounded corners
  • Returns: $true or $false for use in If-Then-Else statements.

See Also

$inrect
$inellipse
$inpoly