public SetEndPoints ( System.Vector2 orig, System.Vector2 dest ) : void | ||
orig | System.Vector2 | |
dest | System.Vector2 | |
Résultat | void |
protected void Swap(Edge edge) { var face1 = edge.LFace; var face2 = edge.Sym.LFace; var edgeA = edge.OPrev; var edgeB = edge.Sym.OPrev; Edge.Splice(edge, edgeA); Edge.Splice(edge.Sym, edgeB); Edge.Splice(edge, edgeA.LNext); Edge.Splice(edge.Sym, edgeB.LNext); edge.SetEndPoints(edgeA.Dest, edgeB.Dest); face1.Reshape(edge); face2.Reshape(edge.Sym); }
protected Edge MakeEdge(Vector2 orig, Vector2 dest) { var edge = new Edge(); edge.SetEndPoints(orig, dest); return edge; }