Give default curve orientation of 1

This commit is contained in:
Grant Sanderson 2022-12-27 15:53:24 -08:00
parent 33a92d3ab3
commit f2859a9a8c
2 changed files with 2 additions and 2 deletions

View file

@ -113,7 +113,7 @@ class VMobject(Mobject):
"fill_rgba": np.zeros((1, 4)),
"stroke_rgba": np.zeros((1, 4)),
"stroke_width": np.zeros((1, 1)),
"orientation": np.zeros((1, 1)),
"orientation": np.ones((1, 1)),
})
# These are here just to make type checkers happy

View file

@ -334,7 +334,7 @@ def get_winding_number(points: Sequence[Vect2 | Vect3]) -> float:
##
def cross2d(a: Vect2, b: Vect2) -> Vect2:
def cross2d(a: Vect2 | Vect2Array, b: Vect2 | Vect2Array) -> Vect2 | Vect2Array:
if len(a.shape) == 2:
return a[:, 0] * b[:, 1] - a[:, 1] * b[:, 0]
else: