http://www.perlmonks.org?node_id=919239


in reply to Cartesian co-ordinate rotation around an Axis

You might find some clues by looking at a pure trig solution to the problem in Rotate a 3D vector. Maybe try to compare outputs for similar inputs, and see where your logic/math error is? One big error to watch out for is degree/rad mixups.

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh
  • Comment on Re: Cartesian co-ordinate rotation around an Axis