Remove usage of np.append

This commit is contained in:
Grant Sanderson
2020-02-13 12:03:54 -08:00
parent c780a7471b
commit c654ca4506
5 changed files with 8 additions and 11 deletions

View File

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