Difference between revisions of "IsInRegion Command"
From GeoGebra Manual
(added example) |
m |
||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version= | + | <noinclude>{{Manual Page|version=5.0}}</noinclude> |
{{command|logical}} | {{command|logical}} | ||
;IsInRegion[ <Point>, <Region> ] | ;IsInRegion[ <Point>, <Region> ] | ||
: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[(1,2), Polygon[(0,0), (2,0), (1,3)]]</code> returns ''true''.}} | :{{Example|1=<code>IsInRegion[(1,2), Polygon[(0,0), (2,0), (1,3)]]</code> returns ''true''.}} |
Revision as of 13:10, 24 July 2015
- 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.