Euclidean Dot Product Formula A⋅B=∥A∥2∥B∥2cosθ where θ is the angle between A and B. Also see Cosine Similarity