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

Method set_x

manim/mobject/mobject.py:1862–1864  ·  view source on GitHub ↗

Set x value of the center of the :class:`~.Mobject` (``int`` or ``float``)

(self, x: float, direction: Vector3DLike = ORIGIN)

Source from the content-addressed store, hash-verified

1860 return self
1861
1862 def set_x(self, x: float, direction: Vector3DLike = ORIGIN) -> Self:
1863 """Set x value of the center of the :class:`~.Mobject` (``int`` or ``float``)"""
1864 return self.set_coord(x, 0, direction)
1865
1866 def set_y(self, y: float, direction: Vector3DLike = ORIGIN) -> Self:
1867 """Set y value of the center of the :class:`~.Mobject` (``int`` or ``float``)"""

Callers 3

test_zoomFunction · 0.45
test_ArrangeFunction · 0.45
auto_zoomMethod · 0.45

Calls 1

set_coordMethod · 0.95

Tested by 2

test_zoomFunction · 0.36
test_ArrangeFunction · 0.36