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

Method get_x

manim/mobject/mobject.py:2310–2312  ·  view source on GitHub ↗

Returns x Point3D of the center of the :class:`~.Mobject` as ``float``

(self, direction: Vector3DLike = ORIGIN)

Source from the content-addressed store, hash-verified

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``"""
2312 return self.get_coord(0, direction)
2313
2314 def get_y(self, direction: Vector3DLike = ORIGIN) -> float:
2315 """Returns y Point3D of the center of the :class:`~.Mobject` as ``float``"""

Callers

nothing calls this directly

Calls 1

get_coordMethod · 0.95

Tested by

no test coverage detected