Class Vertex
- java.lang.Object
-
- com.macrofocus.treemap.fastvoronoi.originalconvexhull.Vertex
-
- Direct Known Subclasses:
ASite
public class Vertex 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 Vertex(double x, double y, double z)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()VertexcrossProduct(Vertex v)booleanequals(java.lang.Object o)intgetIndex()ConflictListgetList()doublegetX()doublegetY()booleanisHandled()booleanlinearDependent(Vertex v)voidnegate()voidsetHandled(boolean b)voidsetIndex(int index)voidsetList(ConflictList list)Vertexsubtract(Vertex v)Point3dtoPoint3D()java.lang.StringtoString()
-
-
-
Method Detail
-
getList
public ConflictList getList()
-
setList
public void setList(ConflictList 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(Vertex 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()
-
-