
I have 4 points: $Q, R, S, T$.
I know the following
- Coordinates for $R$, $T$, and $S$;
- Length of $\overline{RQ}$
- That segment $\overline{RT} < \overline{RQ} < \overline{RS}$;
- I need to figure out the coordinates of $Q$.
$R$, $T$, $S$ form a triangle and point $Q$ can be found on the line segment $\overline{TS}$. I need to get the coordinates for $Q$.
I have solutions for this problem, but they are all so convoluted and long I know I must be doing something wrong. I feel certain there must a simple elegant way to solve this. The best solution would be the simplest one since this needs to be programmed.

Let $d$ be the length $RQ$. Solve $(tM+(1-t)N-L)^2 + (tI+(1-t)J-H)^2 = d^2$ for $t$. As a quadratic this will give two solutions. If $ RT < RQ < RS$ then one of these solutions will be between $0$ and $1$, so pick that one.
Then the co-ordinates of $Q$ are $(O,K)=(tM+(1-t)N,tI+(1-t)J)$.