main/src/georegression/struct/shapes/Rectangle2D_F64.java
public void enforceExtents() {
		if( p1.x < p0.x ) {
			double tmp = p1.x;
			p1.x = p0.x;
			p0.x = tmp;
		}
		if( p1.y < p0.y ) {
			double tmp = p1.y;
			p1.y = p0.y;
			p0.y = tmp;
		}
	}
public void enforceExtents() {
		if( p1.x < p0.x ) {
			double tmp = p1.x;
			p1.x = p0.x;
			p0.x = tmp;
		}
		if( p1.y < p0.y ) {
			double tmp = p1.y;
			p1.y = p0.y;
			p0.y = tmp;
		}
	}
Makes sure x0,y0 is the lower extent and x1,y1 is the upper extent