public interface Points
Modifier and Type | Method and Description |
---|---|
Rectangle2D |
getBounds(Rectangle2D dst)
Returns the bounds of all the points taken as a whole.
|
Point2D |
getPoint(int i,
Point2D dst)
Returns a point representation of the coordinates at the given index.
|
int |
getPointCount()
Returns the number of points in the sequence.
|
double |
getX(int i)
Returns the x component of the point at the given index.
|
double |
getY(int i)
Returns the y component of the point at the given index.
|
int getPointCount()
double getX(int i)
i
- index of desired pointdouble getY(int i)
i
- index of desired pointPoint2D getPoint(int i, Point2D dst)
i
- index of desired pointdst
- output parameter into which the point's details will be
populated, if null a new one will be created.Rectangle2D getBounds(Rectangle2D dst)
dst
- output parameter to store bounds into, if null a new rectangle
will be createdCopyright © 1995–2013 Piccolo2D. All rights reserved.