getArea method
Returns the area of this Polygon
@return the area of the polygon
Implementation
double getArea() {
double area = 0.0;
area += Area.ofRingSeq(shell!.getCoordinateSequence());
for (int i = 0; i < holes!.length; i++) {
area -= Area.ofRingSeq(holes![i].getCoordinateSequence());
}
return area;
}