Move center of the :class:`~.Mobject` to certain Point3D.
(
self,
point_or_mobject: Point3DLike | Mobject,
aligned_edge: Vector3DLike = ORIGIN,
coor_mask: Vector3DLike = np.array([1, 1, 1]),
)
| 1878 | return self |
| 1879 | |
| 1880 | def move_to( |
| 1881 | self, |
| 1882 | point_or_mobject: Point3DLike | Mobject, |
| 1883 | aligned_edge: Vector3DLike = ORIGIN, |
| 1884 | coor_mask: Vector3DLike = np.array([1, 1, 1]), |
| 1885 | ) -> Self: |
| 1886 | """Move center of the :class:`~.Mobject` to certain Point3D.""" |
| 1887 | if isinstance(point_or_mobject, Mobject): |
| 1888 | target = point_or_mobject.get_critical_point(aligned_edge) |
| 1889 | else: |
| 1890 | target = point_or_mobject |
| 1891 | point_to_align = self.get_critical_point(aligned_edge) |
| 1892 | self.shift((target - point_to_align) * coor_mask) |
| 1893 | return self |
| 1894 | |
| 1895 | def replace( |
| 1896 | self, mobject: Mobject, dim_to_match: int = 0, stretch: bool = False |