Geometry
Dot Product of Vectors
Dot product is also known as scalar product or inner product.
Algebraically, the dot product is the sum of the products of the corresponding entries of the two sequences of numbers.
a⋅b=i=1∑naibi
Geometrically, it is the product of the Euclidean magnitudes of the two vectors and the cosine of the angle between them.
a⋅b=∣a∣∣b∣cosθ
Usage
Calculate the angle between two vectors.
\bm{a}\times\bm{b}=\lvert\bm{a}\rvert\lvert\bm{b}\rvert\sin(\theta)\bm{n}
\frac{y_2-y_1}{x_2-x_1} = \frac{y_3-y_2}{x_3-x_2}
Toavoid:1.Theprecisionerrorwemightgetfromthedivisions2.DividebyzeroissueWecanusethefollowingequation:
(y_2-y_1)\cdot(x_3-x_2) = (y_3-y_2)\cdot(x_2-x_1)
Last updated