#include <VertexList.h>
| VertexList::VertexList |
( |
void |
| ) |
|
DCELVertex * tail
Definition: VertexList.h:10
int length
Definition: VertexList.h:13
DCELVertex * head
Definition: VertexList.h:9
| VertexList::~VertexList |
( |
void |
| ) |
|
| void VertexList::addToList |
( |
DCELVertex * |
newVertex | ) |
|
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;
DCELVertex * tail
Definition: VertexList.h:10
Definition: DCELVertex.h:2
double x
Definition: DCELVertex.h:8
int length
Definition: VertexList.h:13
double y
Definition: DCELVertex.h:9
DCELVertex * next
Definition: DCELVertex.h:18
DCELVertex * head
Definition: VertexList.h:9
| void VertexList::echo |
( |
| ) |
|
31 cout << walker->
x <<
" " << walker->
y <<
" 0" << endl;
33 walker = walker->
next;
Definition: DCELVertex.h:2
double x
Definition: DCELVertex.h:8
int index
Definition: DCELVertex.h:16
double y
Definition: DCELVertex.h:9
DCELVertex * next
Definition: DCELVertex.h:18
DCELVertex * head
Definition: VertexList.h:9
| void VertexList::removeFromList |
( |
DCELVertex * |
vertex | ) |
|
66 if (walker == vertex) {
70 while (walker->
next != vertex && walker->
next != NULL) {
71 walker = walker->
next;
73 if (walker->
next = vertex) {
Definition: DCELVertex.h:2
int length
Definition: VertexList.h:13
DCELVertex * next
Definition: DCELVertex.h:18
DCELVertex * head
Definition: VertexList.h:9
The documentation for this class was generated from the following file: