(self, value, dim: int, direction: Vector3DLike = ORIGIN)
| 1853 | return self.rescale_to_fit(depth, 2, stretch=True, **kwargs) |
| 1854 | |
| 1855 | def set_coord(self, value, dim: int, direction: Vector3DLike = ORIGIN) -> Self: |
| 1856 | curr = self.get_coord(dim, direction) |
| 1857 | shift_vect = np.zeros(self.dim) |
| 1858 | shift_vect[dim] = value - curr |
| 1859 | self.shift(shift_vect) |
| 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``)""" |