Vector in the plane

Part of Foundations

Vector in the plane preview
remixableManimCE2Dvectorloop

One arrow from the origin to (3, 2), with thin dashed lines showing its components against each axis. The loop walks the tip once around a small circle, so the magnitude and the angle shift while the components track along. The readout layer carries both, which makes it the asset to reach for when a lesson needs a vector that visibly changes.

manim/plane_vector.py

"""Vector in the plane: an arrow from the origin, its tip orbiting a small circle.

Render (the driver does this for every palette; these are for eyeballing):
    P=/opt/homebrew/opt/python@3.11/bin/python3.11
    ASSET_MODE=still  $P -m manim -s -t -r 1600,1600 manim/plane_vector.py PlaneVector
    ASSET_MODE=motion $P -m manim -qh   -r 1600,1600 manim/plane_vector.py PlaneVectorLoop
"""

import numpy as np
from manim import (
    DOWN,
    LEFT,
    RIGHT,
    TAU,
    UP,
    Arrow,

The full Manim source and the rendered video come with a plan.