Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dom = [[1,1],[3,1],[1,3],[3,3],[2,5]]
- pov = [1/2**0.5, 1/2**0.5]
- dom_new = []
- centr = [2,2]
- for y in dom:
- x = [y[0]-centr[0], y[1]-centr[1]]
- dom_new.append([x[0]*pov[0] - x[1]*pov[1] + centr[0], x[0]*pov[1] + x[1]*pov[0]+centr[1]])
- for i in dom_new:
- print(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement