Grab an arrowhead and drag
➡️ Vector Playground
Drag two arrows on the grid and every number updates live: sum and difference, dot product with the angle between them, cross product, projection of a onto b. The picture and the formulas always agree.
cosθ = a·b/(|a||b|)
√(x²+y²)
(a·b/|b|²)·b
Dot product > 0 → the vectors lean the same way; = 0 → perpendicular; < 0 → opposing. The 2D cross product a×b = ax·by − ay·bx is the signed area of the parallelogram — positive when b lies counter-clockwise from a.