POLYAREA
a = POLYAREA (poly)
Returns the area of the polyline poly
. The algebraic
sign of the area is positive for counterclockwise ordering of vertices
in x-y plane; otherwise negative.
See DRAWPOLY for more information on how to define the polyline.
Example
50,50], [100,50], [100,100], [50,100], [50,50]]
polygon = [ [drawpoly polygon color 12
abs(polyarea(polygon)) ' absolute value of the area, because
Area = ' we are not interested in the
' ordering of the vertices.
print "Polyarea() returns: "; Area
print "Exact area is 50x50 = 2500"
Math
ABS
ABSMAX
ABSMIN
ACOS
ACOSH
ACOT
ACOTH
ACSC
ACSCH
ASEC
ASECH
ASIN
ASINH
ATAN
ATAN2
ATANH
ATN
CEIL
COS
COSH
COT
COTH
CSC
CSCH
DEG
DERIV
DETERM
DIFFEQN
EXP
EXPRSEQ
FIX
FLOOR
FRAC
INT
INTERSECT
INVERSE
LINEQN
LOG
LOG10
M3APPLY
M3IDENT
M3ROTATE
M3SCALE
M3TRANS
MAX
MIN
POLYAREA
POLYCENT
POLYEXT
POW
PTDISTLN
PTDISTSEG
PTSIGN
RAD
RND
ROOT
ROUND
SEC
SECH
SEGCOS
SEGLEN
SEGSIN
SEQ
SGN
SIN
SINH
SQR
STATMEAN
STATMEANDEV
STATMEDIAN
STATSPREADP
STATSPREADS
STATSTD
SUM
SUMSQ
TAN
TANH
TRANSPOSE
If there is insufficient information on this page and you wish learn more about POLYAREA,
please send an email to smallbasic@gmail.com. You can help to improve information about
POLYAREA by submitting a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.