translate method

Vector2 translate(
  1. double x,
  2. double y
)

Implementation

Vector2 translate(double x, double y) {
  return Vector2(this.x + x, this.y + y);
}