mirror of
https://github.com/3b1b/manim.git
synced 2025-07-31 05:52:34 +08:00
Nearly done with ecf
This commit is contained in:
@ -9,6 +9,10 @@ import operator as op
|
||||
|
||||
from constants import *
|
||||
|
||||
def center_of_mass(points):
|
||||
points = [np.array(point).astype("float") for point in points]
|
||||
return sum(points) / len(points)
|
||||
|
||||
def choose(n, r):
|
||||
if n < r: return 0
|
||||
if r == 0: return 1
|
||||
|
Reference in New Issue
Block a user