In mathematics, the scalar product, or dot product, is an algebraic operation that takes two equal-length sequences of numbers and returns a single number.
DotProduct = (x1*x2 + y1*y2)
For example, Vector V1:(1,2), Vector V2:(3,4), The DotProduct = 11.