TangentLine#
Qualified name: manim.mobject.geometry.line.TangentLine
- class TangentLine(vmob, alpha, length=1, d_alpha=1e-06, **kwargs)[source]#
Bases:
LineConstructs a line tangent to a
VMobjectat 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
animateUsed to animate the application of any method of
self.animation_overridescolordepthThe depth of the mobject.
fill_colorIf there are multiple colors (for gradient) this returns the first one
heightThe height of the mobject.
n_points_per_curvesheen_factorstroke_colorwidthThe width of the mobject.