I need to rotate a 3D Cartesian point around a fixed axis 1deg at a time until it comes in contact with another point. I have the Axis Unit Vector, the x, y and z co-ordinates of a point on the line and the Cartesian co-ordinates of the point I want to rotate, my thoughts are that 'Polar Co-Ordinates' is the way forward with this? does anyone have any code I can borrow to do this? or are there any modules which exist on CPAN which are capable of doing this?
many thanks in advance