Try
alpha=atan(hgt/width);
jpmendes
--
View this message in context: http://forum.openscad.org/angel-and-rotation-tp16949p16953.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
yes, atan(h/w) works, too. Or maybe even better:
alpha= atan2( h, w);
$ Runsun Pan, PhD $ libs: doctest , faces ( git ), offline doc ( git ), runscad.py( 1 , 2 , git ), synwrite( 1 , 2 ); $ tips: hash( 1 , 2 ), matrix( 1 , 2 ),sweep( 1 , 2 ), var( 1 , 2 ), lerp , animation ( gif , prodVid ), precision( 1 , 2 ), xl-control , type , rounded polygon , chfont
--
View this message in context: http://forum.openscad.org/angel-and-rotation-tp16949p16956.html
Sent from the OpenSCAD mailing list archive at Nabble.com.