discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] angel and rotation

J
jpmendes
Mon, Apr 4, 2016 2:30 PM

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.

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.
R
runsun
Mon, Apr 4, 2016 2:33 PM

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.

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.