area (<point[ ]>{,<string>})
numeric
The area of a polygon.
<point[ ]>
A point array
containing the vertices of the polygon.
<string>
The unit of measure
for the answer. If omitted, the value of the system string units is used.
The following should yield an area of 1 (meter).
units = ’cm’ point myps[] = <p0, e:100, n:100, w:100> numeric ar = area(myps,’m’)
Identifiers: |
units (string) |