Class JVertex
- java.lang.Object
-
- com.macrofocus.treemap.originalfastvoronoi.convexHull.JVertex
-
- Direct Known Subclasses:
ASite
public class JVertex extends java.lang.Object3-dimensional Point with some extra fields for ConvexHull computation.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.ObjectoriginalObjectdoublexdoubleydoublez
-
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 voidclear()JVertexcrossProduct(JVertex v)booleanequals(java.lang.Object o)intgetIndex()JConflictListgetList()doublegetX()doublegetY()booleanisHandled()booleanlinearDependent(JVertex v)voidnegate()voidsetHandled(boolean b)voidsetIndex(int index)voidsetList(JConflictList list)JVertexsubtract(JVertex v)Point3dtoPoint3D()java.lang.StringtoString()
-
-
-
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:
equalsin 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:
toStringin 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()
-
-