Table of Contents

Method ConvexPolygon

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

ConvexPolygon(IEnumerable<GridPoint2>)

Creates a 2D Convex Polygon given a IEnumerable of vertices.

public static IImplicitShape<GridPoint2> ConvexPolygon(IEnumerable<GridPoint2> vertices)

Parameters

vertices IEnumerable<GridPoint2>

Vertices that describe the polygon.

Returns

IImplicitShape<GridPoint2>