clone
Creates a deep copy of this geometry object.
Returns
GeometryRef<P>
A new geometry that is a copy of this geometry
Examples
const original = point([ 0, 0 ]); // some geometry
const copy = original.clone();
// copy can be modified without affecting the original