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

Re: rotating cube.

by hdb (Prior)
on Jul 08, 2013 at 09:16 UTC ( #1043054=note: print w/ replies, xml ) Need Help??


in reply to rotating cube.

Two comments:

  1. If you have use warnings; then you already know, but otherwise accessing the first element of your list you would write $two[0].
  2. You could replace sqrt((@two[2]*@two[2])/2) by $two[2]/sqrt(2).


Comment on Re: rotating cube.
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (13)
As of 2014-11-26 18:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (172 votes), past polls