Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Polar Co-Ordinates: Rotating a 3D cartesian point around a fixed axis?

by salva (Abbot)
on Jun 26, 2012 at 21:51 UTC ( #978519=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Math::Vector::Real;
    
    $offset = V($x, $y, $z);
    $p_rotated_1deg = $axis->rotate_3d(1*$pi/180, $p - $offset) + $offset;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2015-03-30 04:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (633 votes), past polls