setTo method

void setTo(
  1. T px,
  2. T py
)

Sets the coordinates of this Point to the specified values.

Implementation

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