in reply to
rotating cube.
Two comments:
If you have
use warnings;
then you already know, but otherwise accessing the first element of your list you would write
$two[0]
.
You could replace
sqrt((@two[2]*@two[2])/2)
by
$two[2]/sqrt(2)
.
Comment on
Re: rotating cube.
Select
or
Download
Code
In Section
Seekers of Perl Wisdom