I have a curve between two points $P_1 (x_1, y_1,z_1)$ and $P_2 (x_2, y_2, z_2)$ which both lie either on the surface of a cylinder (case $A$) or on the surface of a cone (case $B$). The curve is the shortest possible curve between $P_1$ and $P_2$.
It is given:
A. cylinder
- center axis is identical with the $x$-axis
- radius is $R$
B. cone
- center axis is identical with the $x$-axis
- vertex is in $x=0, y=0, z=0$
- radius at $x=H (H>0)$ is $R$
Furthermore a distance $D$ is given. $D$ is smaller than the length of the curve between $P_1$ and $P_2$.
I need to calculate the $(x,y,z)$ coordinates of a new point $V$ on the curve between $P_1$ and $P_2$ at the distance $D$ from $P_1$ i.e. the curve length between $P_1$ and $V$ should be $D$.
The curve between $P_1$ and $P_2$ does not pass over the end caps or through the cone vertex.
How do I calculate $(x,y,z)$ of the new point $V$ in case $A$ and case $B$?
