set Location
Sets the location of this Point2D to the same coordinates as the specified Point2D object.
Since
1.2
Parameters
p
the specified Point2D to which to set this Point2D
Sets the location of this Point2D to the specified double coordinates.
Since
1.2
Parameters
x
the new X coordinate of this {Point2D}
y
the new Y coordinate of this {Point2D}