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

Method get_coord

manim/mobject/mobject.py:2306–2308  ·  view source on GitHub ↗

Meant to generalize ``get_x``, ``get_y`` and ``get_z``

(self, dim: int, direction: Vector3DLike = ORIGIN)

Source from the content-addressed store, hash-verified

2304 ) - self.reduce_across_dimension(min, dim)
2305
2306 def get_coord(self, dim: int, direction: Vector3DLike = ORIGIN) -> float:
2307 """Meant to generalize ``get_x``, ``get_y`` and ``get_z``"""
2308 return self.get_extremum_along_dim(dim=dim, key=direction[dim])
2309
2310 def get_x(self, direction: Vector3DLike = ORIGIN) -> float:
2311 """Returns x Point3D of the center of the :class:`~.Mobject` as ``float``"""

Callers 5

set_coordMethod · 0.95
get_xMethod · 0.95
get_yMethod · 0.95
get_zMethod · 0.95
match_coordMethod · 0.45

Calls 1

Tested by

no test coverage detected