$inpoly: Difference between revisions

From Scriptwiki
Jump to navigation Jump to search
Aca20031 (talk | contribs)
No edit summary
(No difference)

Revision as of 23:12, 10 May 2008

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.