C# 클래스 SectorTess, DarkForcesUnity

파일 보기 프로젝트 열기: joeriedel/DarkForcesUnity

공개 메소드들

메소드 설명
PointInTriangle ( Vector2 p, Vector2 p0, Vector2 p1, Vector2 p2 ) : bool
TesselateSector ( LEV, sector, int sectorIndex, bool debugDraw = false ) : List

비공개 메소드들

메소드 설명
CheckSegCounts ( LinkedList segs, List counts ) : bool
ContainsAnyVertices ( LEV, sector, Seg seg0, Seg seg1, Seg seg2 ) : bool
CopySegList ( LEV, sector, IEnumerable segs ) : List
DebugDrawStep ( LEV, sector, IEnumerable newSegs, Seg newSeg0, Seg newSeg1, List outTris ) : void
DrawSeg ( Seg seg, Color color ) : void
FindConnectedSegs ( LinkedList segs, Seg seg, int vert ) : List>
FindSeg ( LinkedList segs, int v0, int v1 ) : LinkedListNode
FindVertex ( LEV, sector, Seg seg, List verts ) : int
Incr ( List counts, int index, int add ) : void
MakeSegTri ( LEV, sector, LinkedListNode node, List verts, List counts, List outTris, bool debugDraw ) : LinkedListNode
TrySegToSeg ( LEV, sector, LinkedList segs, Seg seg0, Seg seg1, List counts, List outTris, bool debugDraw ) : bool
TrySegToVertex ( LEV, sector, LinkedList segs, Seg seg, int index, List counts, List outTris, bool debugDraw ) : bool

메소드 상세

PointInTriangle() 공개 정적인 메소드

public static PointInTriangle ( Vector2 p, Vector2 p0, Vector2 p1, Vector2 p2 ) : bool
p Vector2
p0 Vector2
p1 Vector2
p2 Vector2
리턴 bool

TesselateSector() 공개 정적인 메소드

public static TesselateSector ( LEV, sector, int sectorIndex, bool debugDraw = false ) : List
sector LEV,
sectorIndex int
debugDraw bool
리턴 List