Skip to main content

Point.copy()

The Point.copy() method returns a new point with the same coordinates as the original point. This method does not copy any attributes the original point may have.

Signature

Point point.copy()

Point.copy() example

Point A Point B

An example of the Point.copy() method

Notes

The Point.copy() method will only copy the point's coordinates. To also copy the attributes, use Point.clone() instead.