TangentLine#
Qualified name: manim.mobject.geometry.line.TangentLine
- class TangentLine(vmob, alpha, length=1, d_alpha=1e-06, **kwargs)[source]#
Bases:
Line
Constructs a line tangent to a
VMobject
at a specific point.- Parameters
See also
Examples
Example: TangentLineExample ¶
from manim import * class TangentLineExample(Scene): def construct(self): circle = Circle(radius=2) line_1 = TangentLine(circle, alpha=0.0, length=4, color=BLUE_D) # right line_2 = TangentLine(circle, alpha=0.4, length=4, color=GREEN) # top left self.add(circle, line_1, line_2)
Methods
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.