paths

该部分代码来自 3b1b/manim,有待重构

janim.utils.paths.get_path_func(path_arc: float, path_arc_axis: Vect, path_func: PathFunc | None) PathFunc

根据 path_arc path_arc_axis path_func ,建立 self.path_func

janim.utils.paths.straight_path(start_points: ndarray, end_points: ndarray, alpha: float) ndarray

Same function as interpolate, but renamed to reflect intent of being used to determine how a set of points move to another set. For instance, it should be a specific case of path_along_arc

janim.utils.paths.path_along_arc(arc_angle: float, axis: ndarray = array([0., 0., 1.])) Callable[[ndarray, ndarray, float], ndarray]

If vect is vector from start to end, [vect[:,1], -vect[:,0]] is perpendicular to vect in the left direction.

janim.utils.paths.clockwise_path() Callable[[ndarray, ndarray, float], ndarray]
janim.utils.paths.counterclockwise_path() Callable[[ndarray, ndarray, float], ndarray]