Vectors you can touch
A vector has a horizontal and a vertical component. Its length follows Pythagoras and its direction is an angle:
|v| = \sqrt{x^2 + y^2} \qquad \varphi = \operatorname{atan2}(y, x)
Interactive widget (VectorPad)Try it in the web app →
The vector (3, 4) has length 5 and points at 53.1°, in quadrant I.
The point's coordinates live in the input cells vector_x and vector_y: dragging writes them, and everything else reads them. Type a value into one of them and the point moves.
Experiment
- Start with the 3–4–5 triangle. Find another vector of length 5.
- Drag across the origin. Can a component be negative while the length stays positive?
- Which angles do the four quadrants cover?