Utility.PolygonArea Method

Computes the signed area of a polygon (the points are always projected on XY plane).
Public Shared Function PolygonArea( _ 
ByVal polygon As Double(,) _ 
) As Double
This language is not supported or no code example is available.
public static double PolygonArea( 
double[,] polygon 
)
This language is not supported or no code example is available.

Parameters

polygon
double[,]

The list of 2D points coordinates

Return Value

double

Depending on the polygon direction will return a positive or negative area.

.NET Framework

Supported in: 4.8

In this article

Definition