Tweaked the parameter to rotate rect to be a decimal again.