add option to specify rotation angles in degrees or radians