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

Code before:
            else:
                angle_fin = -2 * np.pi + (angle_2 - angle_1)

        Arc.__init__(
            self,
            radius=radius,
            angle=angle_fin,
            start_angle=start_angle,
            arc_center=inter,
            **kwargs
        )
        if dot == True:
            right_dot = Dot(ORIGIN, radius=dot_radius, color=dot_color)
            dot_anchor = (
                inter
                + (self.get_center() - inter)
                / np.linalg.norm(self.get_center() - inter)
                * radius
                / dot_distance
            )
            right_dot.move_to(dot_anchor)
            self.add(right_dot)


class RightAngle(VMobject):
    """Am elbow-type like object representing a right angle of two intersecting lines.

    Parameters
    ----------
    line1 : :class:`Line`
        The first of the intersecting lines.
    line2 : :class:`Line`
        The second of the intersecting lines.
    length : :class:`float`
        The length of the arms.
    quadrant : Sequence[:class:`int`]
        A sequence of two :class:`int` numbers determining which of the 4 quadrants should be used.
        Possibilities: (1,1), (-1,1), (1,-1), (-1,-1).
    kwargs
        Further keyword arguments that are passed to the constructor of :class:`~.VMobject`.

    Examples
    --------

    ..manim:: RightAngleExample
        :save_last_frame:

        class RightAngleExample(Scene):
            def construct(self):
                line1 = Line( LEFT, RIGHT )
                line2 = Line( DOWN, UP )

Review comment (suggestion):
```suggestion
"""An elbow-type mobject representing a right angle between two intersecting lines.
```

Code after:
                    angle_fin = angle_2 - angle_1
                else:
                    angle_fin = 2 * np.pi - (angle_1 - angle_2)
            else:
                start_angle = angle_1
                if angle_2 < angle_1:
                    angle_fin = -angle_1 + angle_2
                else:
                    angle_fin = -2 * np.pi + (angle_2 - angle_1)

            Arc.__init__(
                self,
                radius=radius,
                angle=angle_fin,
                start_angle=start_angle,
                arc_center=inter,
                **kwargs
            )
            if dot:
                if dot_radius is None:
                    dot_radius = radius / 10
                else:
                    self.dot_radius = dot_radius
                right_dot = Dot(ORIGIN, radius=dot_radius, color=dot_color)
                dot_anchor = (
                    inter
                    + (self.get_center() - inter)
                    / np.linalg.norm(self.get_center() - inter)
                    * radius
                    * dot_distance
                )
                right_dot.move_to(dot_anchor)
                self.add(right_dot)

    def generate_points(self):
        if self.elbow:
            Elbow.generate_points(self)
        else:
            Arc.generate_points(self)


class RightAngle(Angle):
    """An elbow-type mobject representing a right angle between two lines.

    Parameters
    ----------
    line1 : :class:`Line`
        The first line.
    line2 : :class:`Line`
        The second line.
    length : :class:`float`