Function Index
RegionArea
RegionArea[
pts
]
returns the number of elements in the region given by list
pts
.
RegionArea[
roi
]
returns the area of the region specified by graphics primitive
roi
.
The default option setting
UnsignedValue → True
returns positive values of area only. When set to
False
, polygonal areas may be positive or negative depending on the ordering of the vertices.
See also User's Guide
7.5
.
Modified in Version 2.2.
Example
This loads the package.
In[1]:=
Here is a list of 2-tuples defining a closed region on a discrete grid.
In[2]:=
Out[2]=
This returns the number of elements in the region.
In[3]:=
Out[3]=
This returns the area of the region.
In[4]:=
Out[4]=
This returns a negative value for the area of the polygon.
In[5]:=
Out[5]=
© 2009 Wolfram Research, Inc.
•
Terms of Use
•
Privacy Policy
Sign up for our newsletter: