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

Javascript
Point point.copy()

Point.copy() example

Point A Point B

Notes

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