translate method

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

translate the point with x in horizontally and y vertically

Implementation

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