Cosine similarity of a and b, in [-1.0, 1.0]. Returns 0.0 when either vector has zero magnitude, since an undefined angle is better reported as "unrelated" than as an exception in the middle of a search loop.
[-1.0, 1.0]
0.0