setTo method

GPoint setTo(
  1. double x,
  2. double y
)

Sets the x and y values of this GPoint to the provided x and y values respectively.

Implementation

GPoint setTo(double x, double y) {
  this.x = x;
  this.y = y;
  return this;
}