Class Area
Functions for computing area.
Inherited Members
Namespace: NetTopologySuite.Algorithm
Assembly: NetTopologySuite.dll
Syntax
public static class Area
Methods
| Edit this page View SourceOfRing(CoordinateSequence)
Computes the area for a ring.
Declaration
public static double OfRing(CoordinateSequence ring)
Parameters
| Type | Name | Description |
|---|---|---|
| CoordinateSequence | ring | The coordinates forming the ring |
Returns
| Type | Description |
|---|---|
| double | The area of the ring |
OfRing(Coordinate[])
Computes the area for a ring.
Declaration
public static double OfRing(Coordinate[] ring)
Parameters
| Type | Name | Description |
|---|---|---|
| Coordinate[] | ring | The coordinates forming the ring |
Returns
| Type | Description |
|---|---|
| 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 |
Declaration
public static double OfRingSigned(CoordinateSequence ring)
Parameters
| Type | Name | Description |
|---|---|---|
| CoordinateSequence | ring | The coordinates forming the ring |
Returns
| Type | Description |
|---|---|
| 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.
Declaration
public static double OfRingSigned(Coordinate[] ring)
Parameters
| Type | Name | Description |
|---|---|---|
| Coordinate[] | ring | The coordinates forming the ring |
Returns
| Type | Description |
|---|---|
| double | The signed area of the ring |