C# Class FarseerPhysics.Common.Decomposition.CDT.Polygon.Polygon

Inheritance: Triangulatable
Mostrar archivo Open project: prime31/Nez Class Usage Examples

Protected Properties

Property Type Description
_holes List
_last PolygonPoint
_points List
_steinerPoints List
_triangles List

Public Methods

Method Description
AddHole ( Polygon poly ) : void

Add a hole to the polygon.

AddPoint ( PolygonPoint p ) : void

Adds a point after the last in the polygon.

AddPoints ( IEnumerable list ) : void

Inserts list (after last point in polygon?)

AddSteinerPoint ( TriangulationPoint point ) : void
AddSteinerPoints ( List points ) : void
AddTriangle ( DelaunayTriangle t ) : void
AddTriangles ( IEnumerable list ) : void
ClearSteinerPoints ( ) : void
ClearTriangles ( ) : void
InsertPointAfter ( PolygonPoint point, PolygonPoint newPoint ) : void

Inserts newPoint after point.

Polygon ( ) : System
Polygon ( IEnumerable points ) : System

Create a polygon from a list of at least 3 points with no duplicates.

Polygon ( IList points ) : System

Create a polygon from a list of at least 3 points with no duplicates.

PrepareTriangulation ( TriangulationContext tcx ) : void

Creates constraints and populates the context with points

RemovePoint ( PolygonPoint p ) : void

Removes a point from the polygon.

Method Details

AddHole() public method

Add a hole to the polygon.
public AddHole ( Polygon poly ) : void
poly Polygon A subtraction polygon fully contained inside this polygon.
return void

AddPoint() public method

Adds a point after the last in the polygon.
public AddPoint ( PolygonPoint p ) : void
p PolygonPoint The point to add
return void

AddPoints() public method

Inserts list (after last point in polygon?)
public AddPoints ( IEnumerable list ) : void
list IEnumerable
return void

AddSteinerPoint() public method

public AddSteinerPoint ( TriangulationPoint point ) : void
point TriangulationPoint
return void

AddSteinerPoints() public method

public AddSteinerPoints ( List points ) : void
points List
return void

AddTriangle() public method

public AddTriangle ( DelaunayTriangle t ) : void
t FarseerPhysics.Common.Decomposition.CDT.Delaunay.DelaunayTriangle
return void

AddTriangles() public method

public AddTriangles ( IEnumerable list ) : void
list IEnumerable
return void

ClearSteinerPoints() public method

public ClearSteinerPoints ( ) : void
return void

ClearTriangles() public method

public ClearTriangles ( ) : void
return void

InsertPointAfter() public method

Inserts newPoint after point.
public InsertPointAfter ( PolygonPoint point, PolygonPoint newPoint ) : void
point PolygonPoint The point to insert after in the polygon
newPoint PolygonPoint The point to insert into the polygon
return void

Polygon() public method

public Polygon ( ) : System
return System

Polygon() public method

Create a polygon from a list of at least 3 points with no duplicates.
public Polygon ( IEnumerable points ) : System
points IEnumerable A list of unique points.
return System

Polygon() public method

Create a polygon from a list of at least 3 points with no duplicates.
public Polygon ( IList points ) : System
points IList A list of unique points
return System

PrepareTriangulation() public method

Creates constraints and populates the context with points
public PrepareTriangulation ( TriangulationContext tcx ) : void
tcx TriangulationContext The context
return void

RemovePoint() public method

Removes a point from the polygon.
public RemovePoint ( PolygonPoint p ) : void
p PolygonPoint
return void

Property Details

_holes protected_oe property

protected List _holes
return List

_last protected_oe property

protected PolygonPoint,FarseerPhysics.Common.Decomposition.CDT.Polygon _last
return PolygonPoint

_points protected_oe property

protected List _points
return List

_steinerPoints protected_oe property

protected List _steinerPoints
return List

_triangles protected_oe property

protected List _triangles
return List