Utility.PolygonArea<T> Method

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

where T : Point2D
This language is not supported or no code example is available.

Type Parameters

T

Parameters

polygon
IList<T>

The list of 2D points

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