Example usage for Java java.awt.geom Point2D.Double fields, constructors, methods, implement or subclass
The text is from its open source code.
Double(double x, double y) Constructs and initializes a Point2D with the specified coordinates. | |
Point2D.Double |
double | distance(Point2D pt) Returns the distance from this Point2D to a specified Point2D . |
double | distanceSq(Point2D pt) Returns the square of the distance from this Point2D to a specified Point2D . |
double | getX() Returns the X coordinate of this Point2D in double precision. |
double | getY() Returns the Y coordinate of this Point2D in double precision. |
void | setLocation(Point2D p) Sets the location of this Point2D to the same coordinates as the specified Point2D object. |
void | setLocation(double x, double y) Sets the location of this Point2D to the specified double coordinates. |
String | toString() Returns a string representation of the object. |