In a regular hexagon OABCDE $a$ , $b$ denote respectively the position vectors of $A$, $B$ with respect to $O$
I would have assumed that $\overrightarrow {OA} = \overrightarrow {AB} = \overrightarrow {BC} $ since it's a regular hexagon. And, therefore, $\overrightarrow {OC}$ should equal $\overrightarrow {OA} + \overrightarrow {AB} + \overrightarrow {BC} $ and therefore $\overrightarrow {3AB}$.
However, in the literature I was reading, $\overrightarrow{OC}$ is defined as $\overrightarrow {OA}\cos60 + \overrightarrow {AB} + \overrightarrow {BC} \cos60 $, and thus $\frac12 \overrightarrow{AB} + \overrightarrow {AB} + \frac12 \overrightarrow {AB} $ — ultimately $\overrightarrow{2AB}$. Why is this?
An image is included below.

What's true is that the lengths of $OA$ and $AB$ and $BC$ are all equal, but they're not equal as vectors -- they point in three different directions.