Geometric objects¶
Arc types¶
Arc¶
- 
class manimlib.mobject.geometry.Arc(angle, **kwargs)¶
- Type: - VMobject- Parameters
- angle (float) -- Angle of arc 
 - CONFIGparameters- "radius": 1.0, "start_angle": 0, "arc_center": ORIGIN, - 
add_tip(tip_length=0.25, at_start=False, at_end=True)¶
- Add tip 
 - 
get_arc_center()¶
- Get arc center - Returns
- Arc center 
- Return type
- 3D array 
 
 - 
move_arc_center_to(point)¶
- Move arc center to point 
 
ArcBetweenPoints¶
- 
class manimlib.mobject.geometry.ArcBetweenPoints(start_point, end_point, angle=1.5707963267948966, **kwargs)¶
- Type: - Arc- Parameters
- start_point,end_point (3D array) -- Points 
- angle (float) -- TAU/4 by default 
 
 - CONFIGparameters: The same as- Arc
CurvedArrow¶
- 
class manimlib.mobject.geometry.CurvedArrow(start_point, end_point, angle=1.5707963267948966, **kwargs)¶
- Type: - ArcBetweenPoints- CONFIGparameters: The same as- ArcBetweenPoints
CurvedDoubleArrow¶
- 
class manimlib.mobject.geometry.CurvedDoubleArrow(start_point, end_point, angle=1.5707963267948966, **kwargs)¶
- Type: - ArcBetweenPoints- CONFIGparameters: The same as- ArcBetweenPoints
Circle¶
Dot¶
- 
class manimlib.mobject.geometry.Dot(point=array([0.0, 0.0, 0.0]), **kwargs)¶
- Type: - Circle- Parameters
- point (3D array) -- Position 
 - CONFIGparameters- "radius": 0.08, "stroke_width": 0, "fill_opacity": 1.0, "color": WHITE 
Ellipse¶
- 
class manimlib.mobject.geometry.Ellipse(*submobjects, **kwargs)¶
- Type: - VMobject- CONFIGparameters- "width": 2, "height": 1 
AnnularSector¶
- 
class manimlib.mobject.geometry.AnnularSector(*submobjects, **kwargs)¶
- Type: - VMobject- CONFIGparameters- "inner_radius": 1, "outer_radius": 2, "angle": TAU / 4, "start_angle": 0, "fill_opacity": 1, "stroke_width": 0, "color": WHITE, - 
get_arc_center()¶
- Get arc center 
 - 
move_arc_center_to(point)¶
- Move arc center to point 
 
- 
Line types¶
Line¶
- 
class manimlib.mobject.geometry.Line(start, end, **kwargs)¶
- Type: - VMobject- Parameters
- start,end (3D array) -- Points of the line 
 - CONFIGparameters- "buff": 0, "path_arc": None, # angle of arc specified here "n_arc_anchors": 10, # Only used if path_arc is not None - 
get_angle()¶
- Get angle taking the horizontal as a reference - Returns
- Angle 
- Return type
- Float 
 
 - 
get_arc_length()¶
- Get arc length - Returns
- Arc length 
- Return type
- float 
 - Note - Only works if - path_arcis not- None
 - 
get_end()¶
- Get end - Returns
- Point 
- Return type
- 3D array 
 
 - 
get_length()¶
- Get length - Returns
- Lenght of the line 
- Return type
- float 
 
 - 
get_start()¶
- Get start - Returns
- Point 
- Return type
- 3D array 
 
 - 
get_start_and_end()¶
- Get start and end of the line - Returns
- Start of the line (3D array) 
- End of the line (3D array) 
 
 
 - 
get_unit_vector()¶
- Get unit vector of the line - Returns
- Unit vector 
- Return type
- 3D array 
 
 - 
get_vector()¶
- Get vector with the length of the line - Returns
- Vector 
- Return type
- 3D array 
 
 - 
put_start_and_end_on(new_start, new_end)¶
- Put start and end on new points 
 - 
set_angle(angle)¶
- Set angle taking the horizontal as a reference 
 - 
set_start_and_end(start, end)¶
- Set start and end 
 
DashedLine¶
Elbow¶
- 
class manimlib.mobject.geometry.Elbow(**kwargs)¶
- Type: - VMobject- CONFIGparameters- "width": 0.2, "angle": 0, 
Arrow¶
- 
class manimlib.mobject.geometry.Arrow(*args, **kwargs)¶
- Type: - Line- CONFIGparameters- "tip_length": 0.25, "tip_width_to_length_ratio": 1, "max_tip_length_to_length_ratio": 0.35, "max_stem_width_to_tip_width_ratio": 0.3, "buff": MED_SMALL_BUFF, "propagate_style_to_family": False, "preserve_tip_size_when_scaling": True, "normal_vector": OUT, "use_rectangular_stem": True, "rectangular_stem_width": 0.05, - 
get_end()¶
- Get end - Returns
- Point 
- Return type
- 3D array 
 
 - 
get_normal_vector()¶
- Get normal vector - Returns
- Normal vector 
- Return type
- 3D array 
 
 - 
get_tip()¶
- Get tip - Returns
- Tip 
- Return type
- VMobject 
 
 - 
put_start_and_end_on(*args, **kwargs)¶
- Put start and end in new points 
 - 
scale(scale_factor, **kwargs)¶
- Scale without change tip size 
 
- 
Rectangle types¶
Polygon¶
- 
class manimlib.mobject.geometry.Polygon(*vertices, **kwargs)¶
- Type: - VMobject- Parameters
- *vertices (list of 3D arrays) -- Vertices of the poligon as list 
 - CONFIGparameters- "color": GREEN_D, "mark_paths_closed": True, "close_new_points": True, - 
get_vertices()¶
- Get vertices - Returns
- List of points 
- Return type
- List of 3D arrays 
 
 
RegularPolygon¶
- 
class manimlib.mobject.geometry.RegularPolygon(n=3, **kwargs)¶
- Type: - Polygon- Parameters
- n (int) -- Number of sides 
 - CONFIGparameters- "start_angle": 0 
Rectangle¶
- 
class manimlib.mobject.geometry.Rectangle(*submobjects, **kwargs)¶
- Type: - VMobject- CONFIGparameters- "color": WHITE, "height": 2.0, "width": 4.0, "mark_paths_closed": True, "close_new_points": True,