Not quite sure how to explain this so I made a diagram.

http://foxbot.tv/temp/expression_diagram.gif
I would like to add an expression to null c so that where ever I move points a and b, c is equal to the distance between a and b and also at the same angle. I can figure it out mathematically but have no idea how to translate it into a working expression. Any help is greatly appreciated.