mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 21:44:19 +08:00
Vectorize all the things
This commit is contained in:
@ -87,10 +87,10 @@ def color_to_int_rgb(color):
|
||||
|
||||
def compass_directions(n = 4, start_vect = UP):
|
||||
angle = 2*np.pi/n
|
||||
return [
|
||||
return np.array([
|
||||
rotate_vector(start_vect, k*angle)
|
||||
for k in range(n)
|
||||
]
|
||||
])
|
||||
|
||||
def partial_bezier_points(points, a, b):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user