isEmpty method

bool isEmpty()

Implementation

bool isEmpty() {
  // this is a more robust check for empty than ( volume <= 0 ) because volume can get positive with two negative axes

  return (max.x < min.x) || (max.y < min.y);
}