updateBounds method

void updateBounds(
  1. double newX,
  2. double newY
)

Updates the boundries for the navigate method.

Implementation

void updateBounds(double newX, double newY) {
  maxX = -newX;
  maxY = -newY;
}