Constraining 'startDrag' to a non vert or horiz line

I need to know if there is any way to constrain the mouse movements on a startDrag to a line that is not going vertically or horizontally. I’m sure I’ll need to use some trig functions, and that’s fine, I just haven’t been able to find this done anywhere else.

thanks