void setTo(T px, T py)

Sets the coordinates of this Point to the specified values.

Source

void setTo(T px, T py) {
  x = px;
  y = py;
}