The inner product factorises as x⊤y = ‖x‖2 ‖y‖2 cos θ. Solving for cos θ gives the cosine similarity — a number in [−1, 1] that measures how much two vectors point in the same direction, ignoring their lengths. Drag either arrowhead to change the vectors.