mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 21:44:19 +08:00
Much pythagoras, plus better point thickness and display implementations
This commit is contained in:
@ -238,8 +238,11 @@ def angle_between(v1, v2):
|
||||
v2 / np.linalg.norm(v2)
|
||||
))
|
||||
|
||||
|
||||
|
||||
def angle_of_vector(vector):
|
||||
"""
|
||||
Returns polar coordinate theta when vector is project on xy plane
|
||||
"""
|
||||
return np.log(complex(*vector[:2])).imag
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user