Table of Contents

Method Area

Namespace
SkiaSharp.Extended
Assembly
SkiaSharp.Extended.dll

Area(IList<SKPoint>)

Calculates the signed area of a polygon defined by a list of points using the shoelace formula.

public static float Area(IList<SKPoint> polygon)

Parameters

polygon IList<SKPoint>

The list of points defining the polygon.

Returns

float

The signed area of the polygon. Returns 0 if the polygon has fewer than 3 points.

Exceptions

ArgumentNullException

polygon is null.