OrientedSize extension

on

Methods

orientate(NativeDeviceOrientation orientation) Size
Returns the size with width and height swapped if orientation is portrait.