Added zero rad check in rotate function