Possible Duplicate:
TikZ: Node at same x-coordinate as another node, but specified y-coordinate?
Extract x, y coordinate of an arbitrary point in TikZ
How to use x coordinate of a point and y coordinate of other point? I need similar to
\coordinate (A) at (2,1);
\coordinate (B) at (3,0);
\coordinate (C) at (4,3);
\coordinate (D) at (5,-1);
\draw (xA,yB) -- (xC,yD);

xandycoordinates as per Extract x, y coordinate of an arbitrary point in TikZ. – Peter Grill Jul 16 '12 at 22:44