How can i get location that passed two points line?

like upper images i want get C point’s location(vector)

i know A and B Location, and A to C Distance to float.

how can i get c position?

Get direction vector by:

Direction = Normalize(B-A)

Then use:

C = A + Direction * d