manim.mobject.geometry.Line

class Line(start=array([- 1.0, 0.0, 0.0]), end=array([1.0, 0.0, 0.0]), buff=0, path_arc=None, **kwargs)[source]

Bases: manim.mobject.geometry.TipableVMobject

Methods

account_for_buff

generate_points

Initializes points and therefore the shape.

get_angle

get_slope

get_unit_vector

get_vector

pointify

put_start_and_end_on

set_angle

set_length

set_opacity

set_path_arc

set_start_and_end_attrs

Attributes

animate

Used to animate the application of a method.

depth

The depth of the mobject.

height

The height of the mobject.

width

The width of the mobject.

generate_points()[source]

Initializes points and therefore the shape.

Gets called upon creation. This is an empty method that can be implemented by subclasses.