Example usage for Java java.awt.geom Point2D fields, constructors, methods, implement or subclass
The text is from its open source code.
Object | clone() Creates a new object of the same class and with the same contents as this object. |
double | distance(Point2D pt) Returns the distance from this Point2D to a specified Point2D . |
double | distance(double px, double py) Returns the distance from this Point2D to a specified point. |
double | distance(double x1, double y1, double x2, double y2) Returns the distance between two points. |
double | distanceSq(Point2D pt) Returns the square of the distance from this Point2D to a specified Point2D . |
double | distanceSq(double px, double py) Returns the square of the distance from this Point2D to a specified point. |
double | distanceSq(double x1, double y1, double x2, double y2) Returns the square of the distance between two points. |
boolean | equals(Object obj) Determines whether or not two points are equal. |
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(double x, double y) Sets the location of this Point2D to the specified double coordinates. |
void | setLocation(Point2D p) Sets the location of this Point2D to the same coordinates as the specified Point2D object. |
String | toString() Returns a string representation of the object. |