$inpoly: Difference between revisions

From Scriptwiki
Jump to navigation Jump to search
Aca20031 (talk | contribs)
No edit summary
 
Aca20031 (talk | contribs)
m See also
 
Line 7: Line 7:
* 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.
* 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.
* Returns: [[$true]] or [[$false]] for use in [[If-Then-Else]] statements.
==See Also==
[[$inrect]]<br>
[[$inellipse]]<br>
[[$inroundrect]]


[[Category:Picture Windows]][[Category:Text and Number Identifiers]]
[[Category:Picture Windows]][[Category:Text and Number Identifiers]]

Latest revision as of 18:07, 11 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.

See Also

$inrect
$inellipse
$inroundrect