Vectorize all the things

This commit is contained in:
Grant Sanderson
2016-04-17 00:31:38 -07:00
parent bd3783586a
commit 0d4e928b6e
12 changed files with 406 additions and 362 deletions

View File

@ -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):
"""