get an equivalent rect where all dimensions are positive