Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Rotation around an axis clockwise and anti-clockwise algorithm question?

by BrowserUk (Pope)
on Jun 12, 2012 at 19:52 UTC ( #975867=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $cube = [
        [-0.5, 0.5, 0.5],[ 0.5, 0.5, 0.5],[ 0.5,-0.5, 0.5],[-0.5,-0.5, 0.5
    +], # front face 
        [-0.5, 0.5,-0.5],[ 0.5, 0.5,-0.5],[ 0.5,-0.5,-0.5],[-0.5,-0.5,-0.5
    +], # back face
    ];
    
  2. or download this
    [
        [-0.50000000000000011, 0.49999999999999989, 0.49999999999999971],
    ...
        [ 0.49999999999999921,-0.500000000000000001,-0.500000000000000022]
    +,
        [-0.50000000000000011,-0.4999999999999999002,-0.50000000000000001]
    +, # back face
    ];
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://975867]
help
Chatterbox?
[prathap keerthipati]: how to update perl in unix
[hippo]: yum update perl
[hippo]: Other package managers are available
LanX wouldn't update system Perl!
[Discipulus]: prathap keerthipati might be it is better to install an alternative Perl instead and do not touch the system one
[LanX]: see perlbrew for alternative Perl installations
[marto]: unless you know exactly what you're doing an often saner option is to simply build another Perl rather than replace the system one

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (16)
As of 2017-03-23 10:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (285 votes). Check out past polls.