C# Class SectorTess, DarkForcesUnity

Afficher le fichier Open project: joeriedel/DarkForcesUnity

Méthodes publiques

Méthode Description
PointInTriangle ( Vector2 p, Vector2 p0, Vector2 p1, Vector2 p2 ) : bool
TesselateSector ( LEV, sector, int sectorIndex, bool debugDraw = false ) : List

Private Methods

Méthode Description
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

Method Details

PointInTriangle() public static méthode

public static PointInTriangle ( Vector2 p, Vector2 p0, Vector2 p1, Vector2 p2 ) : bool
p Vector2
p0 Vector2
p1 Vector2
p2 Vector2
Résultat bool

TesselateSector() public static méthode

public static TesselateSector ( LEV, sector, int sectorIndex, bool debugDraw = false ) : List
sector LEV,
sectorIndex int
debugDraw bool
Résultat List