31 cout << walker->
x <<
" " << walker->
y <<
" 0" << endl;
33 walker = walker->
next;
48 while (walker->
next) {
49 if ((walker->
next->
y < newVertex->
y) || (walker->
next->
y == newVertex->
y && walker->
next->
x > newVertex->
x))
break;
50 walker = walker->
next;
53 walker->
next = newVertex;
66 if (walker == vertex) {
70 while (walker->
next != vertex && walker->
next != NULL) {
71 walker = walker->
next;
73 if (walker->
next = vertex) {
void removeFromList(DCELVertex *vertex)
Definition: VertexList.h:61
DCELVertex * tail
Definition: VertexList.h:10
VertexList(void)
Definition: VertexList.h:18
void echo()
Definition: VertexList.h:26
Definition: DCELVertex.h:2
~VertexList(void)
Definition: VertexList.h:22
double x
Definition: DCELVertex.h:8
int index
Definition: DCELVertex.h:16
int length
Definition: VertexList.h:13
Definition: VertexList.h:3
double y
Definition: DCELVertex.h:9
void addToList(DCELVertex *newVertex)
Definition: VertexList.h:38
DCELVertex * next
Definition: DCELVertex.h:18
DCELVertex * head
Definition: VertexList.h:9