Rotate rational by rotation value, which inverse it if the degree is 90 or 270.
Rational to be rotated.
Rotation value being applied.