Class Area
java.lang.Object
org.locationtech.jts.algorithm.Area
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doubleofRing(Coordinate[] ring) Computes the area for a ring.static doubleofRing(CoordinateSequence ring) Computes the area for a ring.static doubleofRingSigned(Coordinate[] ring) Computes the signed area for a ring.static doubleComputes the signed area for a ring.
-
Constructor Details
-
Area
public Area()
-
-
Method Details
-
ofRing
Computes the area for a ring.- Parameters:
ring- the coordinates forming the ring- Returns:
- the area of the ring
-
ofRing
Computes the area for a ring.- Parameters:
ring- the coordinates forming the ring- Returns:
- the area of the ring
-
ofRingSigned
Computes the signed area for a ring. The signed area is positive if the ring is oriented CW, negative if the ring is oriented CCW, and zero if the ring is degenerate or flat.- Parameters:
ring- the coordinates forming the ring- Returns:
- the signed area of the ring
-
ofRingSigned
Computes the signed area for a ring. The signed area is:- positive if the ring is oriented CW
- negative if the ring is oriented CCW
- zero if the ring is degenerate or flat
- Parameters:
ring- the coordinates forming the ring- Returns:
- the signed area of the ring
-