clone method

GPoint clone()

Creates a copy of this GPoint object.

Implementation

GPoint clone() {
  return GPoint(x, y);
}