Point2D
constructor()
Constructs and initializes a Point2D with coordinates (0, 0).
Since
1.2
add the constructor
Parameters
pt
Constructs and initializes a Point2D with the specified coordinates.
Since
1.2
Parameters
x
the X coordinate of the newly constructed Point2D
y
the Y coordinate of the newly constructed Point2D