clone method

Position<T> clone()

Returns a copy of this position

Implementation

Position<T> clone() {
  return Position<T>(x, y);
}