The set of random variables is a vector space, and many of the properties of Euclidean space can be analogized to them. The standard deviation acts much like a length, and the variance like length squared. Independence corresponds to being orthogonal, while perfect correlation corresponds with scalar multiplication. Thus, variance of independent variables follow the Pythagorean Theorem:
$var(A+B) = var(A)+var(B)$.
If they are perfectly correlated, then
$std(A+B) = std(A)+std(B)$
Note that this is equivalent to
$var(A+B) = var(A)+var(B)+2\sqrt{var(A)var(B)}$
If they are not independent, then they follow a law analogous to the law of cosines:
$var(A+B) = var(A)+var(B)+2cov(A,B)$
Note that the general case is one in between complete independence and perfect correlation. If $A$ and $B$ are independent, then $cov(A,B)$ is zero. So the general case is that $var(A,B)$ always has a $var(A)$ term and a $var(B)$ term, and then it has some variation on the $2\sqrt{var(A)var(B)}$ term; the more correlated the variables are, the larger this third term will be. And this is precisely what $2cov(A,B)$ is: it's $2\sqrt{var(A)var(B)}$ times the $r^2$ of $A$ and $B$.
$var(A+B) = var(A)+var(B)+MeasureOfCorrelation*PerfectCorrelationTerm$
where $MeasureOfCorrelation = r^2$ and $PerfectCorrelationTerm=2\sqrt{var(A)var(B)}$
Put in other terms, if $r = correl(A,B)$, then
$\sigma_{A+B} = \sigma_A^2+\sigma_B^2+ 2(r\sigma_A)(r\sigma_B)$
Thus, $r^2$ is analogous to the $cos$ in the Law of Cosines.