mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Give default curve orientation of 1
This commit is contained in:
parent
33a92d3ab3
commit
f2859a9a8c
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue