Vector Sum

What you see

The red and green vectors are added head‑to‑tail. The blue vector represents their sum — drawn from the same origin. The red vector rotates continuously, showing how the resultant changes.

API features used

CanvasRenderer · Vector2 · Color

All vector operations are immutable — each add, scale, rotate returns a new instance.

Source code