$inpoly

From Scriptwiki
Revision as of 19:07, 11 May 2008 by Aca20031 (talk | contribs) (See also)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Returns whether or not a point is in a polygon with points at the given locations.

$inpoly(x,y,x1,y1,x2,y2,...)
  • X is the X coordinate you wish to check.
  • Y is the Y coordinate you wish to check.
  • X1 and Y1 refer to the coordiantes of the first point, X2 and Y2 of the second, etc. You may have as many points as you wish but no fewer than three to get a $true value.
  • Returns: $true or $false for use in If-Then-Else statements.

See Also

$inrect
$inellipse
$inroundrect