I have
- a cylinder C
- a straight line segment $L = L_0 \rightarrow L_1$ on the surface of the cylinder. A helix in 3D
- a point P on the surface of the cylinder.
- Note that the equation to the line, in the coordinate system of the cylinder surface is $L = L_0 + \mathbf{v}t$ where $\mathbf{v} = L_1 - L_0$
I wish to find closest point on L from P.
Note L is finite length and can have any orientation and all distances are measured along the surface of the cylinder.