Class ASite
- java.lang.Object
-
- com.macrofocus.treemap.fastvoronoi.originalconvexhull.Vertex
-
- com.macrofocus.treemap.fastvoronoi.originalconvexhull.ASite
-
-
Field Summary
Fields Modifier and Type Field Description protected static doublenearlyZeroprotected java.util.ArrayList<Site>neighboursPolygonSimplenonClippedPolyonprotected doublepercentageprotected PolygonSimplepolygonprotected doubleweight-
Fields inherited from class com.macrofocus.treemap.fastvoronoi.originalconvexhull.Vertex
originalObject, x, y, z
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Site b)The sites are first ordered according to the x-axis and then according to the y axisdoubledistance(Site point)EucliddoubledistanceCircles(Site point)java.util.ArrayList<Site>getNeighbours()doublegetPercentage()Point2DgetPoint()PolygonSimplegetPolygon()doublegetWeight()voidsetNeighbours(java.util.ArrayList<Site> list)voidsetPercentage(double percentage)voidsetPolygon(PolygonSimple poly)voidsetWeight(double weight)voidsetX(double x)voidsetXY(double x, double y)voidsetXYW(double x, double y, double weight)voidsetY(double y)java.lang.StringtoString()
-
-
-
Field Detail
-
nearlyZero
protected static final double nearlyZero
- See Also:
- Constant Field Values
-
weight
protected double weight
-
percentage
protected double percentage
-
polygon
protected PolygonSimple polygon
-
nonClippedPolyon
public PolygonSimple nonClippedPolyon
-
neighbours
protected java.util.ArrayList<Site> neighbours
-
-
Constructor Detail
-
ASite
public ASite(double x, double y)- Parameters:
x- x-coordinatey- y-coordinate
-
ASite
public ASite(double x, double y, double weight)- Parameters:
x- x-coordinatey- y-coordinateweight- the weight of the site, where weight=radius*radius which is used for weighting
-
ASite
public ASite(double x, double y, double weight, double percentage)
-
-
Method Detail
-
getPolygon
public PolygonSimple getPolygon()
- Specified by:
getPolygonin interfaceiSite
-
setPolygon
public void setPolygon(PolygonSimple poly)
- Specified by:
setPolygonin interfaceiSite
-
setNeighbours
public void setNeighbours(java.util.ArrayList<Site> list)
- Specified by:
setNeighboursin interfaceiSite
-
getNeighbours
public java.util.ArrayList<Site> getNeighbours()
- Specified by:
getNeighboursin interfaceiSite
-
setXYW
public void setXYW(double x, double y, double weight)
-
compareTo
public int compareTo(Site b)
The sites are first ordered according to the x-axis and then according to the y axis- Specified by:
compareToin interfacejava.lang.Comparable<Site>
-
setPercentage
public void setPercentage(double percentage)
- Specified by:
setPercentagein interfaceiSite
-
getPercentage
public double getPercentage()
- Specified by:
getPercentagein interfaceiSite
-
distance
public double distance(Site point)
Euclid- Parameters:
point-- Returns:
-
distanceCircles
public double distanceCircles(Site point)
-
-