rotate

fun Size.rotate(@IntRange(from = 0, to = 359) rotationDegrees: Int): Size

Rotates a Size according to the rotation degrees.

Return

rotated size

Parameters

rotationDegrees

the rotation degrees

Throws

if the rotation degrees is not a multiple of 90