In Euclidean geometry, the dot product, length, and angle are related. For a vector a, the dot product a · a is the square of the length of a, or
where |a| denotes the length (magnitude) of a. More generally, if b is another vector
where |a| and |b| denote the length of a and b and θ is the angle between them.

