Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Sujet n° 1588
Degrees stuff
le 20/10/2007 @ 13:45 par Nate Weil
going through the manual, I noticed the radian and degree commands. Obviously these have to do with turning degrees, but does that mean you can rotate a square for instance?
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497 Réponse n° 1 -------- le 20/10/2007 @ 19:59 par JoeV
visiteur
Hello Nate,
These are simply conversion routines that convert one number to another. There are 2*PI radians in 360 degrees.
a=2*pi b=degree(a) print b 'This should print 360.
a=360 b=radian(a) print b 'This should print 2*PI or 6.2831855
Regards, JoeV
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497 Réponse n° 2 -------- le 20/10/2007 @ 20:04 par Nate Weil
visiteur
ok that all makes sense (I can't get to my palm atm to try it) but can I then use that to make a square rotate on the screen?