Table of Contents

Constructor Polygon2D

Namespace
Pinwheel.Vista.Geometric
Assembly
Pinwheel.Vista.Runtime.dll

Polygon2D(Vector2[])

Creates a polygon from an ordered vertex array.

public Polygon2D(Vector2[] v)

Parameters

v Vector2[]

The polygon vertices in loop order.

Exceptions

ArgumentException

Thrown when fewer than three vertices are supplied.