Show / Hide Table of Contents

Class Polygon2D

Inheritance
System.Object
Polygon2D
Namespace: Edgar.Unity
Assembly: cs.temp.dll.dll
Syntax
public class Polygon2D

Constructors

Polygon2D(PolygonGrid2D)

Declaration
public Polygon2D(PolygonGrid2D polygon)
Parameters
Type Name Description
PolygonGrid2D polygon

Polygon2D(List<Vector2Int>)

Declaration
public Polygon2D(List<Vector2Int> points)
Parameters
Type Name Description
System.Collections.Generic.List<Vector2Int> points

Methods

GetAllPoints()

Returns all the points of the polygon (outline + inside points).

Declaration
public List<Vector2Int> GetAllPoints()
Returns
Type Description
System.Collections.Generic.List<Vector2Int>
Remarks

Modifying the collection does not modify the polygon itself.

GetCornerPoints()

Returns all the corner points of the polygon.

Declaration
public List<Vector2Int> GetCornerPoints()
Returns
Type Description
System.Collections.Generic.List<Vector2Int>
Remarks

Modifying the collection does not modify the polygon itself.

GetGridPolygon()

Declaration
public PolygonGrid2D GetGridPolygon()
Returns
Type Description
PolygonGrid2D

GetOutlinePoints()

Returns all the outline points of the polygon.

Declaration
public List<Vector2Int> GetOutlinePoints()
Returns
Type Description
System.Collections.Generic.List<Vector2Int>
Remarks

Modifying the collection does not modify the polygon itself.

In This Article
Back to top Generated by DocFX