|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PointSet2D
A set of points. All points within the set are instances of Point2D. The most direct implementation of PointSet2D is PointArray2D.
Field Summary |
---|
Fields inherited from interface math.geom2d.Shape2D |
---|
ACCURACY |
Method Summary | |
---|---|
boolean |
add(Point2D point)
Adds a new point to the point set. |
void |
addAll(java.util.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. |
java.util.Collection<Point2D> |
points()
Returns the collection of points contained in this set. |
int |
size()
Returns the number of points in the set. |
PointSet2D |
transform(AffineTransform2D trans)
Transforms the point set by returning a new point set containing each transformed point. |
Methods inherited from interface math.geom2d.circulinear.CirculinearShape2D |
---|
buffer, transform |
Methods inherited from interface math.geom2d.Shape2D |
---|
boundingBox, contains, contains, distance, distance, draw, isBounded, isEmpty |
Methods inherited from interface math.geom2d.GeometricObject2D |
---|
almostEquals |
Methods inherited from interface math.geom2d.ShapeSet2D |
---|
add, clear, contains, get, indexOf, remove, remove |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
boolean add(Point2D point)
add
in interface ShapeSet2D<Point2D>
point
- the initial point in the setvoid addAll(java.util.Collection<? extends Point2D> points)
points
- an array of pointsjava.util.Collection<Point2D> points()
points
in interface PointShape2D
int size()
size
in interface PointShape2D
size
in interface ShapeSet2D<Point2D>
PointSet2D transform(AffineTransform2D trans)
transform
in interface PointShape2D
transform
in interface Shape2D
trans
- an affine transform
PointSet2D clip(Box2D box)
clip
in interface PointShape2D
clip
in interface Shape2D
box
- the clipping box
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |