offset method

void offset(
  1. double dx,
  2. double dy
)

Offsets this point's coordinates by dx along the x-axis and by dy along the y-axis.

Implementation

void offset(double dx, double dy) {
  x += dx;
  y += dy;
}