area

The area enclosed by ring, in square metres: the same whichever way round it goes. A ring of fewer than 3 points encloses nothing (0). For a ring that crosses itself the result is the signed sum, which is not what anyone means by its area: a drawing has to be a simple ring.


fun area(polygon: DrawnPolygon): Double

The area of polygon, in square metres, with the holes taken out and the separate parts added, as the shape is filled (see DrawnPolygon).