Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pX = int(input("x pre-coord: "))
- pY = int(input("y pre-coord: "))
- rot = input("rotation direction: ")
- deg = int(input("degrees: "))
- rep = deg / 90
- finX = pX
- finY = pY
- ## change the flipping to an even or odd value code to determine flipping
- if rot == counterclockwise:
- while rep != 0:
- if pX > 0 and pY > 0:
- pX = pY
- pY = pX
- pX = pX * -1
- elif pX < 0 and pY > 0:
- pX = pY
- pY = pX
- pY = pY * -1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement