Table of Contents

Method Perimeter

Namespace
SkiaSharp.Extended
Assembly
SkiaSharp.Extended.dll

Perimeter(IList<SKPoint>)

Calculates the perimeter of a polygon defined by a list of points.

public static float Perimeter(IList<SKPoint> polygon)

Parameters

polygon IList<SKPoint>

The list of points defining the polygon.

Returns

float

The perimeter of the polygon. Returns 0 if the polygon has fewer than 2 points.

Exceptions

ArgumentNullException

polygon is null.