mirror of
https://github.com/3b1b/manim.git
synced 2025-07-29 21:12:35 +08:00
np.linalg.norm -> get_norm
This commit is contained in:
@ -3,6 +3,7 @@ import numpy as np
|
||||
from constants import OUT
|
||||
from utils.bezier import interpolate
|
||||
from utils.space_ops import rotation_matrix
|
||||
from utils.space_ops import get_norm
|
||||
|
||||
STRAIGHT_PATH_THRESHOLD = 0.01
|
||||
|
||||
@ -24,9 +25,9 @@ def path_along_arc(arc_angle, axis=OUT):
|
||||
"""
|
||||
if abs(arc_angle) < STRAIGHT_PATH_THRESHOLD:
|
||||
return straight_path
|
||||
if np.linalg.norm(axis) == 0:
|
||||
if get_norm(axis) == 0:
|
||||
axis = OUT
|
||||
unit_axis = axis / np.linalg.norm(axis)
|
||||
unit_axis = axis / get_norm(axis)
|
||||
|
||||
def path(start_points, end_points, alpha):
|
||||
vects = end_points - start_points
|
||||
|
Reference in New Issue
Block a user