set method

V2 set(
  1. num x,
  2. num y
)

Implementation

V2 set(num x, num y) {
  this.x = x.toDouble();
  this.y = y.toDouble();
  return _this;
}