Difference between revisions of "IsInRegion Command"
From GeoGebra Manual
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact ) |
(command syntax: changed [ ] into ( )) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version= | + | <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((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.