A b = | a || b | cos θ is equivalent to controlling the included angle θ of (a, b) between 0 → 180.
That is, choose one of the vector directions as the positive directions A and B, such as direction B, and draw a rectangular coordinate system (y, b) to determine their included angles.