I am given the points A, B and X within a tikzpicture environment, like this:
\begin{tikzpicture}
\coordinate (A) at (0,0);
\coordinate (B) at (3.6,0);
\coordinate (X) at (2,0);
\end{tikzpicture}
Now I would like to construct the coordinate C as in this picture: 
Using circle and straightedge, I would raise a perpendicular on AB in X and intersect it with the circle having AB as a diameter. I'm sure there is a clean way to do this in TikZ (without doing any coordinate calculations by hand). However browsing through the (substantial) documentation, I wasn't able to find a direct answer.
For portability, I would like to have a solution in plain TikZ (without the tkz-euclide package).
EDIT
For clarification: By a "clean way" I'm trying to express that I want to tell TikZ "what I mean". So for example: Introducing the midpoint O of the line segment [AB] would be ok, as well as saying that the distance of C and O should be the same as the distance of A and O. But direct computations of the coordinates, for example based on the Geometric mean theorem or trigonometric functions should be avoided.
As a fast check: If there is some function like sqrt or atan etc. in your code, then it's probabily not what I'm looking for. Also, your code should still work if I alter the starting coordinates of A, B and X (they should still be on a common line, though, but this line might not be horizontal any more.)









intersectionslibrary to get the intersection of the arc and a line from X upwards. I'm not sure why you'd do this this way, but you can. – cfr Jul 13 '15 at 14:04