Example usage for Java javafx.geometry Point2D fields, constructors, methods, implement or subclass
The text is from its open source code.
Point2D | ZERO Point or vector with both coordinates set to 0. |
Point2D(@NamedArg("x") double x, @NamedArg("y") double y) Creates a new instance of Point2D . |
Point2D | add(Point2D point) Returns a point with the coordinates of the specified point added to the coordinates of this point. |
double | distance(Point2D point) Computes the distance between this point and the specified point . |
double | getX() The x coordinate. |
double | getY() The y coordinate. |
Point2D | multiply(double factor) Returns a point with the coordinates of this point multiplied by the specified factor |
Point2D | subtract(Point2D point) Returns a point with the coordinates of the specified point subtracted from the coordinates of this point. |