Dot Product
The dot product of two vectors is a scalar value that is calculated by multiplying their corresponding components and summing the results. It is given by the formula v · w = v_x * w_x + v_y * w_y for 2D vectors. The dot product is crucial for finding the angle between two vectors, as it relates to the cosine of the angle through the equation v · w = |v| |w| cos(θ).