Polygon<T extends Point<num>> constructor

Polygon<T extends Point<num>>(
  1. Iterable<LineString<T>> rings
)

Create Polygon from rings with at least exterior boundary at index 0.

Contains also interior boundaries if length is >= 2.

A polygon is considered empty if the exterior is empty.

Implementation

Polygon(Iterable<LineString<T>> rings) : rings = validate<T>(rings);