Skip to main content

Point.clone()

The Point.clone() method returns a new Point with the same coordinates and attributes as the original point.

Signature​

Point point.clone()
tip

This method is chainable as it returns the Point object

Example​

Point A Point B

An example of the Point.clone() method

Notes​

The Point.copy() method will only copy the point's coordinates, whereas this Point.clone() method will also copy its attributes.