L2 Distance vs Cosine Similarity: The Hidden Connection

When we talk about comparing vectors, two measures usually come up: L2 Distance (Euclidean distance) and Cosine Similarity.