diff --git a/manimlib/mobject/types/vectorized_mobject.py b/manimlib/mobject/types/vectorized_mobject.py index 26360254..90c2b4f9 100644 --- a/manimlib/mobject/types/vectorized_mobject.py +++ b/manimlib/mobject/types/vectorized_mobject.py @@ -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 diff --git a/manimlib/utils/space_ops.py b/manimlib/utils/space_ops.py index 1bde3d1a..01643e8f 100644 --- a/manimlib/utils/space_ops.py +++ b/manimlib/utils/space_ops.py @@ -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: