tan((a+b)/2) = (sin(a)+sin(b))/(cos(a)+cos(b))