Untitled

mail@pastecode.io avatar
unknown
python
16 days ago
200 B
0
Indexable
Never
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)
Leave a Comment