http://qs1969.pair.com?node_id=400012


in reply to Rotate a 3D vector

The program i am writing is generating sine-wave based seaweed and kelp plants for povray. I wanted to rotate my vector points around a simple y axis, but can't get a concrete example to get started. The sine wav part is done though:) I do not want to use povray to rotate because i want to output to obj file which means i need real coordinates not translated. Any chance you can show me in perl code how to rotate a vector around a single axis? thanks for help.
jtrue