Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Rotate a 3D vector

by true (Pilgrim)
on Oct 18, 2004 at 00:44 UTC ( #400012=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://400012]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2023-02-09 03:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (44 votes). Check out past polls.

    Notices?