A convex quadrilateral with corners in a fixed clockwise order starting at the top-left, as seen in the image.
Polygon area (shoelace formula).
Mean of the horizontal edges divided by mean of the vertical edges. >1 means landscape.
>1
Corners in clockwise order starting at topLeft.
Returns the same quad with its corners cyclically shifted by steps positions (clockwise).