public class PointGroup extends Object
Constructor and Description |
---|
PointGroup()
Constructs a empty PointGroup
|
Modifier and Type | Method and Description |
---|---|
PointGroup |
addPoint(int x,
int y)
Adds a point into the point group
|
PointGroup |
addPoint(Point point)
Adds a point into the point group
|
Point[] |
toArray()
Returns all the points in the PointGroup
|
public PointGroup addPoint(Point point)
point
- Point instancePointGroup
object.public PointGroup addPoint(int x, int y)
x
- x coordinate of the pointy
- y coordinate of the pointPointGroup
object.public Point[] toArray()