MCPcopy
hub / github.com/ManimCommunity/manim / get_center

Method get_center

manim/mobject/mobject.py:2240–2242  ·  view source on GitHub ↗

Get center Point3Ds

(self)

Source from the content-addressed store, hash-verified

2238 return self.get_critical_point(direction)
2239
2240 def get_center(self) -> Point3D:
2241 """Get center Point3Ds"""
2242 return self.get_critical_point(np.zeros(self.dim))
2243
2244 def get_center_of_mass(self) -> Point3D:
2245 return np.apply_along_axis(np.mean, 0, self.get_all_points())

Callers 15

centerMethod · 0.95
replaceMethod · 0.95
arrange_in_gridMethod · 0.95
becomeMethod · 0.95
constructMethod · 0.45
test_reproducible_sceneFunction · 0.45
test_zoomFunction · 0.45

Calls 1

get_critical_pointMethod · 0.95

Tested by 15

test_reproducible_sceneFunction · 0.36
test_zoomFunction · 0.36
test_shift_familyFunction · 0.36
test_initial_configFunction · 0.36
test_chained_animateFunction · 0.36
test_shift_familyFunction · 0.36
test_initial_configFunction · 0.36
test_chained_animateFunction · 0.36