Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 taking refuge in the Monastery: (5)
As of 2016-08-28 23:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (396 votes). Check out past polls.