Untitled
Anonymous
python
02/05/2024 5:19 PM
268 B
21
Indexable
from math import cos, sin, radians x, y = 2, 2 a = 90 x_new = x * cos(radians(360 - a)) - y * sin(radians(360 - a)) y_new = x * sin(radians(360 - a)) + y * cos(radians(360 - a)) print(x_new, y_new)
Editor is loading...
Leave a Comment