A community-maintained Python framework for creating mathematical animations.
Added simple midpoint function
Grant Sanderson29424eb6b36c
diff --git a/manimlib/utils/space_ops.py b/manimlib/utils/space_ops.pyindex 196707ca2..b0113f92f 100644--- a/manimlib/utils/space_ops.py+++ b/manimlib/utils/space_ops.py@@ -205,6 +205,10 @@ def center_of_mass(points):return sum(points) / len(points)+def midpoint(point1, point2):+ return center_of_mass([point1, point2])++def line_intersection(line1, line2):"""return intersection point of two lines,