C# Класс FarseerPhysics.Common.Decomposition.CDT.Polygon.Polygon

Наследование: Triangulatable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_holes List
_last PolygonPoint
_points List
_steinerPoints List
_triangles List

Открытые методы

Метод Описание
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.

Описание методов

AddHole() публичный Метод

Add a hole to the polygon.
public AddHole ( Polygon poly ) : void
poly Polygon A subtraction polygon fully contained inside this polygon.
Результат void

AddPoint() публичный Метод

Adds a point after the last in the polygon.
public AddPoint ( PolygonPoint p ) : void
p PolygonPoint The point to add
Результат void

AddPoints() публичный Метод

Inserts list (after last point in polygon?)
public AddPoints ( IEnumerable list ) : void
list IEnumerable
Результат void

AddSteinerPoint() публичный Метод

public AddSteinerPoint ( TriangulationPoint point ) : void
point TriangulationPoint
Результат void

AddSteinerPoints() публичный Метод

public AddSteinerPoints ( List points ) : void
points List
Результат void

AddTriangle() публичный Метод

public AddTriangle ( DelaunayTriangle t ) : void
t FarseerPhysics.Common.Decomposition.CDT.Delaunay.DelaunayTriangle
Результат void

AddTriangles() публичный Метод

public AddTriangles ( IEnumerable list ) : void
list IEnumerable
Результат void

ClearSteinerPoints() публичный Метод

public ClearSteinerPoints ( ) : void
Результат void

ClearTriangles() публичный Метод

public ClearTriangles ( ) : void
Результат void

InsertPointAfter() публичный Метод

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
Результат void

Polygon() публичный Метод

public Polygon ( ) : System
Результат System

Polygon() публичный Метод

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.
Результат System

Polygon() публичный Метод

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
Результат System

PrepareTriangulation() публичный Метод

Creates constraints and populates the context with points
public PrepareTriangulation ( TriangulationContext tcx ) : void
tcx TriangulationContext The context
Результат void

RemovePoint() публичный Метод

Removes a point from the polygon.
public RemovePoint ( PolygonPoint p ) : void
p PolygonPoint
Результат void

Описание свойств

_holes защищенное свойство

protected List _holes
Результат List

_last защищенное свойство

protected PolygonPoint,FarseerPhysics.Common.Decomposition.CDT.Polygon _last
Результат PolygonPoint

_points защищенное свойство

protected List _points
Результат List

_steinerPoints защищенное свойство

protected List _steinerPoints
Результат List

_triangles защищенное свойство

protected List _triangles
Результат List