public class PolygonsObject extends java.lang.Object implements SpatialComparable
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<Polygon> |
polygons
The polygons
|
static PolygonsObject |
PROTOTYPE
Static (empty) prototype
|
Constructor and Description |
---|
PolygonsObject(java.util.Collection<Polygon> polygons)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
appendToBuffer(java.lang.StringBuilder buf)
Append polygons to the buffer.
|
int |
getDimensionality()
Returns the dimensionality of the object.
|
double |
getMax(int dimension)
Returns the maximum coordinate at the specified dimension.
|
double |
getMin(int dimension)
Returns the minimum coordinate at the specified dimension.
|
java.util.Collection<Polygon> |
getPolygons()
Access the polygon data.
|
java.lang.String |
toString() |
public static final PolygonsObject PROTOTYPE
private java.util.Collection<Polygon> polygons
public PolygonsObject(java.util.Collection<Polygon> polygons)
polygons
- Polygonspublic java.util.Collection<Polygon> getPolygons()
public java.lang.String toString()
toString
in class java.lang.Object
public void appendToBuffer(java.lang.StringBuilder buf)
buf
- Buffer to append topublic int getDimensionality()
SpatialComparable
getDimensionality
in interface SpatialComparable
public double getMin(int dimension)
SpatialComparable
getMin
in interface SpatialComparable
dimension
- the dimension for which the coordinate should be returned,
where 0 ≤ dimension < getDimensionality()
public double getMax(int dimension)
SpatialComparable
getMax
in interface SpatialComparable
dimension
- the dimension for which the coordinate should be returned,
where 0 ≤ dimension < getDimensionality()
Copyright © 2019 ELKI Development Team. License information.