expandToPoint method

void expandToPoint(
  1. Vec2D point
)

Implementation

void expandToPoint(Vec2D point) {
  var x = point.x;
  var y = point.y;
  if (x < left) {
    left = x;
  }
  if (x > right) {
    right = x;
  }
  if (y < top) {
    top = y;
  }
  if (y > bottom) {
    bottom = y;
  }
}