changed int to double for enlarge, rotate, and shrink