Moved from checking the whole bounding box to solving for the min and max X points instead.