Law of cosine using obtuse triangle

Drag the red points!