Okay so pick a point on the line, call it A
Pick another, B
Call the center of the circle C
You now have two vectors, A->C and A->B, call these vectors a and b respectively
Now compute the projection of a onto b, and subtract that from a, giving you a vector
Take the length of that vector