manim.mobject.three_dimensions.Arrow3D

class Arrow3D(start=array([- 1.0, 0.0, 0.0]), end=array([1.0, 0.0, 0.0]), thickness=0.02, height=0.5, base_radius=0.25, color='#FFFFFF', **kwargs)[source]

Bases: manim.mobject.three_dimensions.Line3D

An arrow made out of a cylindrical line and a conical tip.

Examples

Example: ExampleArrow3D

../_images/ExampleArrow3D-1.png
from manim import *

class ExampleArrow3D(ThreeDScene):
    def construct(self):
        axes = ThreeDAxes()
        arrow = Arrow3D(start=np.array([0, 0, 0]), end=np.array([2, 2, 2]))
        self.set_camera_orientation(phi=75 * DEGREES, theta=30 * DEGREES)
        self.add(axes, arrow)
Parameters
  • start (numpy.array) – The start position of the arrow.

  • end (numpy.array) – The end position of the arrow.

  • thickness (float) – The thickness of the arrow.

  • height (float) – The height of the conical tip.

  • base_radius (float) – The base radius of the conical tip.

Methods

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.