static class PointFactory.Point2D extends java.lang.Object implements Point2d
| Modifier and Type | Field and Description |
|---|---|
(package private) double[] |
pts |
| Constructor and Description |
|---|
Point2D(double x,
double y) |
| Modifier and Type | Method and Description |
|---|---|
double[] |
getLocation()
Returns either a new array or internal temporary array with a copy of the data or a
direct reference to the array.
|
double |
getX()
Returns the x-coordinate.
|
double |
getY()
Returns the y-coordinate.
|
void |
setLocation(double[] p)
Sets the location of the point.
|
void |
setLocation(double x,
double y)
Sets the location of the point.
|
public double getX()
Point2dpublic double getY()
Point2dpublic void setLocation(double[] p)
PointsetLocation in interface Pointpublic void setLocation(double x,
double y)
Point2dsetLocation in interface Point2dpublic double[] getLocation()
PointgetLocation in interface Point