Fixed error in rotate() order of parameters