mirror of
https://github.com/3b1b/manim.git
synced 2025-07-31 14:03:59 +08:00
Refactored helpers.py into a folder of various util files, take 2
This commit is contained in:
@ -2,7 +2,7 @@ import numpy as np
|
||||
from scipy import linalg
|
||||
from utils.simple_functions import choose
|
||||
|
||||
CLOSED_THRESHOLD = 0.01
|
||||
CLOSED_THRESHOLD = 0.0
|
||||
|
||||
def bezier(points):
|
||||
n = len(points) - 1
|
||||
@ -123,4 +123,4 @@ def diag_to_matrix(l_and_u, diag):
|
||||
return matrix
|
||||
|
||||
def is_closed(points):
|
||||
return np.linalg.norm(points[0] - points[-1]) < CLOSED_THRESHOLDp
|
||||
return np.linalg.norm(points[0] - points[-1]) < CLOSED_THRESHOLD
|
Reference in New Issue
Block a user