public abstract class PointCloud<X extends Point_>
extends java.lang.Object
Constructor and Description |
---|
PointCloud() |
Modifier and Type | Method and Description |
---|---|
void |
add(X p)
Add a new point to the point cloud
|
abstract X[] |
boundingBox()
Compute the bounding box (enclosing all points)
|
int |
dimension()
Return the dimension of the space
|
java.util.Collection<X> |
listOfPoints()
Return the list of points
|
abstract X |
max(int d)
Return the point with greatest coordinate value (in direction d)
|
abstract X |
min(int d)
Return the point with smallest coordinate value (in direction d)
|
void |
remove(X p)
Remove a point to the point cloud
|
int |
size()
Return the size of the point cloud
|
public int size()
public int dimension()
public void add(X p)
p
- the point to addpublic void remove(X p)
p
- the point to removepublic java.util.Collection<X> listOfPoints()
public abstract X[] boundingBox()
public abstract X min(int d)
d
- dimensionpublic abstract X max(int d)
d
- dimension