Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 wandering the Monastery: (13)
As of 2015-03-05 10:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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









    Results (139 votes), past polls