mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 08:54:38 +08:00
Remove usage of np.append
This commit is contained in:
@ -653,7 +653,7 @@ class Vector(Arrow):
|
||||
|
||||
def __init__(self, direction=RIGHT, **kwargs):
|
||||
if len(direction) == 2:
|
||||
direction = np.append(np.array(direction), 0)
|
||||
direction = np.hstack([direction, 0])
|
||||
Arrow.__init__(self, ORIGIN, direction, **kwargs)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user