Compute a · b = |a||b|cos θ for 2D and 3D vectors with full geometric interpretation, step-by-step work, and an interactive visualization.