So for some reason I my brain seems be failing me :(
Anyway....I have a cylinder object in 3D space and inside of the cylinder I have line objects originating at the origin (0,0,0) (which is also the centre point of the cylinder).
I would like to find the exact point of intersection when a line crosses either of the end-caps of the cylinder but I'm not sure how to do this....
I already determine whether or not a line will actually cross the end-cap so I'm not bothered about checking this.
I should probably also mention that the line objects aren't straight. I can however get a vector that describes a line segment that crosses an end-cap.
I feel I have the basic ingredients for the calculation(s) needed but my brain refuses to help me on this. Any help would be greatly appreciated :)