summaryrefslogtreecommitdiffstats
path: root/voronoi/cVertex.java
diff options
context:
space:
mode:
Diffstat (limited to 'voronoi/cVertex.java')
-rw-r--r--voronoi/cVertex.java51
1 files changed, 51 insertions, 0 deletions
diff --git a/voronoi/cVertex.java b/voronoi/cVertex.java
new file mode 100644
index 0000000..1704141
--- /dev/null
+++ b/voronoi/cVertex.java
@@ -0,0 +1,51 @@
+package voronoi;
+class cVertex {
+
+ cVertex prev, next;
+ cPointi v;
+ boolean ear = false;
+ int vnum;
+ cEdge duplicate;
+ boolean onhull;
+ boolean mark;
+
+ cVertex() {
+ prev = next = null;
+ v = new cPointi();
+ vnum = 0;
+ duplicate = null;
+ onhull = false;
+ mark = false;
+ }
+
+ cVertex(int i, int j) {
+ v = new cPointi();
+ v.x = i;
+ v.y = j;
+ v.z = i * i + j* j;
+ prev = next = null;
+ }
+
+ cVertex(int x, int y, int z) {
+ v = new cPointi();
+ v.x = x;
+ v.y = y;
+ v.z = z;
+ prev = next = null;
+ }
+
+ public void ResetVertex3D()
+ {
+ v.z = v.x * v.x + v.y * v.y;
+ }
+
+}
+
+
+
+
+
+
+
+
+