offset method

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

Offsets this Point by the specified amount.

Implementation

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