rotateFromString
Parse a rotation string such as "90deg", "25%" or "1" into a number of 90 degree rotations, normalised to 0..3.
Parameters
defaultValue
returned when the string does not contain a whole number of quarter turns. Defaults to 0.