Instantiate object by distance on a straight angle of an object

Hello !
Below is the picture of what i want to achieve.
I want to instantiate object “c” by distance from object “a” with given distance. Is there a way to achieve this?
Thanks in advance.
I

@leebrond - similar questions have been already asked, this is mostly math question.

There are probably several ways to do this, but here is one:

Get the start and end point positions

Create also a direction vector from point A to point B

Create a while loop

In your while loop add some step to a value

Multiply direction vector by this value

Repeat until you’ve reached the distance