Class JVertex
- java.lang.Object
-
- com.macrofocus.treemap.originalfastvoronoi.convexHull.JVertex
-
- Direct Known Subclasses:
ASite
public class JVertex extends java.lang.Object
3-dimensional Point with some extra fields for ConvexHull computation.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Object
originalObject
double
x
double
y
double
z
-
Constructor Summary
Constructors Constructor Description JVertex(double x, double y, double z)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
JVertex
crossProduct(JVertex v)
boolean
equals(java.lang.Object o)
int
getIndex()
JConflictList
getList()
double
getX()
double
getY()
boolean
isHandled()
boolean
linearDependent(JVertex v)
void
negate()
void
setHandled(boolean b)
void
setIndex(int index)
void
setList(JConflictList list)
JVertex
subtract(JVertex v)
Point3d
toPoint3D()
java.lang.String
toString()
-
-
-
Method Detail
-
getList
public JConflictList getList()
-
setList
public void setList(JConflictList list)
-
getIndex
public int getIndex()
-
setIndex
public void setIndex(int index)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
linearDependent
public boolean linearDependent(JVertex v)
- Parameters:
v
- Vertex compared to Object- Returns:
- Whether given Vertex and the Object are linearly dependent
-
negate
public void negate()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setHandled
public void setHandled(boolean b)
-
isHandled
public boolean isHandled()
-
toPoint3D
public Point3d toPoint3D()
-
getX
public double getX()
-
getY
public double getY()
-
clear
public void clear()
-
-