The java.awt.geom.Point2D.clone() method in Java creates and returns a new instance of the Point2D class that is an exact copy of the original Point2D object. This method is used to create a shallow copy of the object, meaning that the cloned object will have the same values for its coordinates as the original object. The clone() method is helpful when there is a need to create a duplicate of a Point2D object without modifying the original object.
Java Point2D.clone - 17 examples found. These are the top rated real world Java examples of java.awt.geom.Point2D.clone extracted from open source projects. You can rate examples to help us improve the quality of examples.