How to calculate coordinates and line segments

No worries - please tick the answer if you’re happy, it will help others.

So, the point between A and B, but rotated how? Towards what?