public interface PointSet2D extends PointShape2D, Iterable<Point2D>
| Modifier and Type | Method and Description |
|---|---|
void |
addPoint(Point2D point)
Adds a new point to the point set.
|
void |
addPoints(Collection<? extends Point2D> points)
Add a series of points
|
PointSet2D |
clip(Box2D box)
Returns a new point set containing only points located within the box.
|
int |
getPointNumber()
Returns the number of points in the set.
|
Collection<Point2D> |
getPoints()
Returns an iterator on the internal point collection.
|
PointSet2D |
transform(AffineTransform2D trans)
Transforms the point set by returning a new point set containing each
transformed point.
|
getBuffer, transformcontains, contains, draw, getBoundingBox, getDistance, getDistance, isBounded, isEmptyvoid addPoint(Point2D point)
point - the initial point in the setvoid addPoints(Collection<? extends Point2D> points)
points - an array of pointsCollection<Point2D> getPoints()
getPoints in interface PointShape2Dint getPointNumber()
getPointNumber in interface PointShape2DPointSet2D transform(AffineTransform2D trans)
transform in interface PointShape2Dtransform in interface Shape2Dtrans - an affine transformPointSet2D clip(Box2D box)
clip in interface PointShape2Dclip in interface Shape2Dbox - the clipping boxCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.