Difference between revisions of "IsInRegion Command"
From GeoGebra Manual
m |
(command syntax: changed [ ] into ( )) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version=5.0}}</noinclude> | + | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|logical}} |
− | {{command|logical}} | + | ;IsInRegion( <Point>, <Region> ) |
− | ;IsInRegion | ||
:Returns ''true'' if the point is in given [[Geometric Objects#Regions|region]] and ''false'' otherwise. | :Returns ''true'' if the point is in given [[Geometric Objects#Regions|region]] and ''false'' otherwise. | ||
− | :{{Example|1=<code>IsInRegion | + | :{{Example|1=<code>IsInRegion((1,2), Polygon((0,0), (2,0), (1,3)))</code> returns ''true''.}} |
Latest revision as of 19:42, 30 September 2017
- IsInRegion( <Point>, <Region> )
- Returns true if the point is in given region and false otherwise.
- Example:
IsInRegion((1,2), Polygon((0,0), (2,0), (1,3)))
returns true.