offsetAbsolute method

Mappoint offsetAbsolute(
  1. double dx,
  2. double dy
)

Creates a new Mappoint that is offset by the given dx and dy values.

Implementation

Mappoint offsetAbsolute(double dx, double dy) {
  if (0 == dx && 0 == dy) {
    return this;
  }
  return Mappoint(x + dx, y + dy);
}