C# 클래스 FarseerPhysics.Common.Decomposition.FlipcodeDecomposer

Triangulates a polygon into triangles. Doesn't handle holes.
파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 메소드들

메소드 설명
ConvexPartition ( Vertices vertices ) : List

Decompose the polygon into triangles. Properties: - Only works on counter clockwise polygons

비공개 메소드들

메소드 설명
InsideTriangle ( Vector2 &a, Vector2 &b, Vector2 &c, Vector2 &p ) : bool

Check if the point P is inside the triangle defined by the points A, B, C

Snip ( Vertices contour, int u, int v, int w, int n, int V ) : bool

Cut a the contour and add a triangle into V to describe the location of the cut

메소드 상세

ConvexPartition() 공개 정적인 메소드

Decompose the polygon into triangles. Properties: - Only works on counter clockwise polygons
public static ConvexPartition ( Vertices vertices ) : List
vertices Vertices The list of points describing the polygon
리턴 List