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 double
nearlyZero
protected java.util.ArrayList<Site>
neighbours
PolygonSimple
nonClippedPolyon
protected double
percentage
protected PolygonSimple
polygon
protected double
weight
-
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 int
compareTo(Site b)
The sites are first ordered according to the x-axis and then according to the y axisdouble
distance(Site point)
Eucliddouble
distanceCircles(Site point)
java.util.ArrayList<Site>
getNeighbours()
double
getPercentage()
Point2D
getPoint()
PolygonSimple
getPolygon()
double
getWeight()
void
setNeighbours(java.util.ArrayList<Site> list)
void
setPercentage(double percentage)
void
setPolygon(PolygonSimple poly)
void
setWeight(double weight)
void
setX(double x)
void
setXY(double x, double y)
void
setXYW(double x, double y, double weight)
void
setY(double y)
java.lang.String
toString()
-
-
-
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:
getPolygon
in interfaceiSite
-
setPolygon
public void setPolygon(PolygonSimple poly)
- Specified by:
setPolygon
in interfaceiSite
-
setNeighbours
public void setNeighbours(java.util.ArrayList<Site> list)
- Specified by:
setNeighbours
in interfaceiSite
-
getNeighbours
public java.util.ArrayList<Site> getNeighbours()
- Specified by:
getNeighbours
in 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:
compareTo
in interfacejava.lang.Comparable<Site>
-
setPercentage
public void setPercentage(double percentage)
- Specified by:
setPercentage
in interfaceiSite
-
getPercentage
public double getPercentage()
- Specified by:
getPercentage
in interfaceiSite
-
distance
public double distance(Site point)
Euclid- Parameters:
point
-- Returns:
-
distanceCircles
public double distanceCircles(Site point)
-
-