---
description: 制作向量
---

# VectorArrow

<figure><img src="https://3378841769-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvb7a7iWx8OZAGPxzbEZJ%2Fuploads%2F8vO4CuEi26hsR6fu0r6k%2FVectorArrow_ManimCE_v0.19.0.png?alt=media&#x26;token=b7e1951d-08c8-4f74-b3c8-77ffbe52cdb5" alt=""><figcaption><p>VectorArrow</p></figcaption></figure>

```python
from manim import *

class VectorArrow(Scene):
    def construct(self):
        dot = Dot(ORIGIN)
        arrow = Arrow(ORIGIN, [2, 2, 0], buff=0)
        numberplane = NumberPlane()
        origin_text = Text('(0, 0)').next_to(dot, DOWN)
        tip_text = Text('(2, 2)').next_to(arrow.get_end(), RIGHT)
        self.add(numberplane, dot, arrow, origin_text, tip_text)
```
