I find myself with a cylinder of radius r, positioned along the x-axis, with equation y^2 + z^2 = r^2.
If I have two arbitrary points which lie on the surface of such a cylinder, is there a"two-point formula" which would give me some equation of a curve (which also curves along the surface of the cylinder) connecting the two points?
I envision an equation similar to the two-point equation of a line in 2D or 3D, but I do not know if such an equation is possible or makes sense.
My use case is wanting to render a curve connecting two points laying on such a cylinder, in a program I am writing in Python. I would like to render this curve but also understand the underlying mathematics.
Thank you in advance.