Repository: ManimCommunity/manim
File: manim/mobject/mobject.py (Python)

Code before:
            ``self``

        See also
        --------
        :meth:`move_to`

        """
        if config["use_opengl_renderer"]:
            self.apply_points_function(
                lambda points: scale_factor * points,
                works_on_bounding_box=True,
                **kwargs,
            )
            return self
        else:
            self.apply_points_function_about_point(
                lambda points: scale_factor * points, **kwargs
            )
            return self

    def rotate_about_origin(self, angle, axis=OUT, axes=[]):
        """Rotates an mobject about the ORIGIN, which is at [0,0,0]"""
        return self.rotate(angle, axis, about_point=ORIGIN)

    def rotate(self, angle, axis=OUT, **kwargs):
        """Rotates an mobject about a certain point"""
        if config["use_opengl_renderer"]:
            rot_matrix_T = rotation_matrix_transpose(angle, axis)
            self.apply_points_function(
                lambda points: np.dot(points, rot_matrix_T), **kwargs
            )
            return self
        else:
            rot_matrix = rotation_matrix(angle, axis)
            self.apply_points_function_about_point(
                lambda points: np.dot(points, rot_matrix.T), **kwargs
            )
            return self

    def flip(self, axis=UP, **kwargs):
        """Flips/Mirrors an mobject about its center.

        Examples
        --------

        .. manim:: FlipExample
            :save_last_frame:

            class FlipExample(Scene):
                def construct(self):
                    s= Line(LEFT, RIGHT+UP).shift(4*LEFT)

Review comment (suggestion):
```suggestion
        """Rotates the :class:`~.Mobject` about a certain point."""
```

Code after:
            ``self``

        See also
        --------
        :meth:`move_to`

        """
        if config["use_opengl_renderer"]:
            self.apply_points_function(
                lambda points: scale_factor * points,
                works_on_bounding_box=True,
                **kwargs,
            )
            return self
        else:
            self.apply_points_function_about_point(
                lambda points: scale_factor * points, **kwargs
            )
            return self

    def rotate_about_origin(self, angle, axis=OUT, axes=[]):
        """Rotates the :class:`~.Mobject` about the ORIGIN, which is at [0,0,0]."""
        return self.rotate(angle, axis, about_point=ORIGIN)

    def rotate(self, angle, axis=OUT, **kwargs):
        """Rotates the :class:`~.Mobject` about a certain point."""
        if config["use_opengl_renderer"]:
            rot_matrix_T = rotation_matrix_transpose(angle, axis)
            self.apply_points_function(
                lambda points: np.dot(points, rot_matrix_T), **kwargs
            )
            return self
        else:
            rot_matrix = rotation_matrix(angle, axis)
            self.apply_points_function_about_point(
                lambda points: np.dot(points, rot_matrix.T), **kwargs
            )
            return self

    def flip(self, axis=UP, **kwargs):
        """Flips/Mirrors an mobject about its center.

        Examples
        --------

        .. manim:: FlipExample
            :save_last_frame:

            class FlipExample(Scene):
                def construct(self):
                    s= Line(LEFT, RIGHT+UP).shift(4*LEFT)