My problem is the following: I have a cylinder, and a couple of geodesic segments on its surface. The segments are defined by the coordinates of their start and end points. I have to obtain the coordinates of intersections of these segments. Unwrapping the cylinder to a plane would let me easily compute the intersections as the segments would be lines, however there is a problem with periodicity, i.e. by cutting the cylinder I might loose intersections. My question is whether there is any general formula for this situation which would somehow implicitly take into account periodicity.
Thank you!
Bb