|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectPoint
Vertex
public class Vertex
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 |
|---|
public int vnum
public Edge duplicate
public boolean onhull
public boolean mark
| Constructor Detail |
|---|
public Vertex(double x,
double y,
double z,
int vnum)
x - the x-coordinatey - the y-coordinatez - the z-coordinatevnum - a unique identifier (usually an index into an array)| Method Detail |
|---|
public java.lang.String toString(java.lang.String df)
toString in class Pointdf - the format to be used for a single coordinatepublic java.lang.String toString()
toString in class Point
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||