public static class Point2D.Double extends Point2D
double precision.Point2D.Double, Point2D.Float| Modifier and Type | Field and Description |
|---|---|
double |
x
The X coordinate.
|
double |
y
The Y coordinate.
|
| Constructor and Description |
|---|
Point2D.Double()
Create a new point at (0,0).
|
Point2D.Double(double x,
double y)
Create a new point at (x,y).
|
| Modifier and Type | Method and Description |
|---|---|
double |
getX()
Return the x coordinate.
|
double |
getY()
Return the y coordinate.
|
void |
setLocation(double x,
double y)
Sets the location of this point.
|
String |
toString()
Returns a string representation of this object.
|
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocationpublic Point2D.Double()
public Point2D.Double(double x, double y)
x - the x coordinatey - the y coordinatepublic double getX()
public double getY()
public void setLocation(double x, double y)
setLocation in class Point2Dx - the new x coordinatey - the new y coordinatepublic String toString()
"Point2D.Double[" + x + ", " + y + ']'.toString in class ObjectObject.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)