Class Vertex

java.lang.Object
  extended by Point
      extended by Vertex

public class Vertex
extends Point

A 3-dimensioal vertex used to construct polyhedra in the spirit of O'Rourke, _Computational Geometry in C_. Note that all field access is public, for convenience.


Field Summary
 Edge duplicate
          incident cone edge (or null)
 boolean mark
          T iff point already processed
 boolean onhull
          T iff point on hull
 int vnum
          unique id
 
Constructor Summary
Vertex(double x, double y, double z, int vnum)
          Constructor for a 3D Point.
 
Method Summary
 java.lang.String toString()
          Format the point.
 java.lang.String toString(java.lang.String df)
          Format the point using a hint.
 
Methods inherited from class Point
area2, between, collinear, collinear3, coord, dimension, distanceL1, distanceL2, distanceL2squared, intersect, intersectProp, left, leftOn, volume6
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

vnum

public int vnum
unique id


duplicate

public Edge duplicate
incident cone edge (or null)


onhull

public boolean onhull
T iff point on hull


mark

public boolean mark
T iff point already processed

Constructor Detail

Vertex

public Vertex(double x,
              double y,
              double z,
              int vnum)
Constructor for a 3D Point.

Parameters:
x - the x-coordinate
y - the y-coordinate
z - the z-coordinate
vnum - a unique identifier (usually an index into an array)
Method Detail

toString

public java.lang.String toString(java.lang.String df)
Format the point using a hint.

Overrides:
toString in class Point
Parameters:
df - the format to be used for a single coordinate

toString

public java.lang.String toString()
Format the point.

Overrides:
toString in class Point