updated the rotation range from (-pi,pi) to (0,2pi)