PerpendicularBisector¶
Qualified name: manimextra.geometry.PerpendicularBisector
- class manimextra.geometry.PerpendicularBisector(line, length=1, **kwargs)¶
Bases:
Line
A class to represent a perpendicular bisector to a line.
- Parameters:
line (Line) – The line to which the perpendicular bisector is drawn.
length (float, optional) – The length of the perpendicular bisector, by default 1.0.
Examples
Example: PerpendicularBisectorExample ¶
from manim import * from manimextra import * class PerpendicularBisectorExample(Scene): def construct(self): line = Line(2 * LEFT, 2 * RIGHT, color=YELLOW) perpendicular = PerpendicularBisector(line, color=RED) self.add(line, perpendicular)
Methods
Get all the angles formed by the perpendicular bisector.
Attributes
animate
Used to animate the application of any method of
self
.animation_overrides
color
depth
The depth of the mobject.
fill_color
If there are multiple colors (for gradient) this returns the first one
height
The height of the mobject.
n_points_per_curve
sheen_factor
stroke_color
width
The width of the mobject.
- _original__init__(line, length=1, **kwargs)¶
Initialize self. See help(type(self)) for accurate signature.
- get_angles(**kwargs)¶
Get all the angles formed by the perpendicular bisector.
- Parameters:
kwargs
- Returns: