Arrow3D¶
Qualified name: manim.mobject.three\_d.three\_dimensions.Arrow3D
- class Arrow3D(start=array([-1., 0., 0.]), end=array([1., 0., 0.]), thickness=0.02, height=0.3, base_radius=0.08, color=ManimColor('#FFFFFF'), resolution=24, **kwargs)[source]¶
Bases:
Line3DAn arrow made out of a cylindrical line and a conical tip.
- Parameters:
start (Point3DLike) – The start position of the arrow.
end (Point3DLike) – 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.
color (ManimColor) – The color of the arrow.
resolution (int | tuple[int, int]) – The resolution of the arrow line.
kwargs (Any)
Examples
Example: ExampleArrow3D ¶
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]), resolution=8 ) self.set_camera_orientation(phi=75 * DEGREES, theta=30 * DEGREES) self.add(axes, arrow)
class ExampleArrow3D(ThreeDScene): def construct(self): axes = ThreeDAxes() arrow = Arrow3D( start=np.array([0, 0, 0]), end=np.array([2, 2, 2]), resolution=8 ) self.set_camera_orientation(phi=75 * DEGREES, theta=30 * DEGREES) self.add(axes, arrow)Methods
Attributes
alwaysCall a method on a mobject every frame.
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.
- _original__init__(start=array([-1., 0., 0.]), end=array([1., 0., 0.]), thickness=0.02, height=0.3, base_radius=0.08, color=ManimColor('#FFFFFF'), resolution=24, **kwargs)¶
Initialize self. See help(type(self)) for accurate signature.
- Parameters:
start (Point3DLike)
end (Point3DLike)
thickness (float)
height (float)
base_radius (float)
color (ParsableManimColor)
resolution (int | tuple[int, int])
kwargs (Any)
- Return type:
None