Class Area
- Namespace
- NetTopologySuite.Algorithm
- Assembly
- NetTopologySuite.dll
Functions for computing area.
public static class Area
- Inheritance
-
Area
- Inherited Members
Methods
OfRing(CoordinateSequence)
Computes the area for a ring.
public static double OfRing(CoordinateSequence ring)
Parameters
ringCoordinateSequenceThe coordinates forming the ring
Returns
- double
The area of the ring
OfRing(Coordinate[])
Computes the area for a ring.
public static double OfRing(Coordinate[] ring)
Parameters
ringCoordinate[]The coordinates forming the ring
Returns
- double
The area of the ring
OfRingSigned(CoordinateSequence)
Computes the signed area for a ring. The signed area is positive if the
| value | meaning |
|---|---|
| > 0 | The ring is oriented clockwise (CW) |
| < 0 | The ring is oriented counter clockwise (CCW) |
| == 0 | The ring is degenerate or flat |
public static double OfRingSigned(CoordinateSequence ring)
Parameters
ringCoordinateSequenceThe coordinates forming the ring
Returns
- double
The signed area of the ring
OfRingSigned(Coordinate[])
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.
public static double OfRingSigned(Coordinate[] ring)
Parameters
ringCoordinate[]The coordinates forming the ring
Returns
- double
The signed area of the ring