actually using *RAD is even cleaner: you can use it already and don't have to alter, even less break anything. You know, the KISSprinciple... Am 21.03.2014 21:54 schrieb "Johannes Reinhardt" <[hidden email]>:
BEGIN PGP SIGNED MESSAGE _______________________________________________ OpenSCAD mailing list [hidden email] http://rocklinux.net/mailman/listinfo/openscad http://openscad.org  https://flattr.com/thing/121566 
In reply to this post by Johannes Reinhardt
sin(pi, use_radians=true) is not really as clean as sin(pi * RADIAN) if you consider the bigger context. If the OpenSCAD community were to start using radians more extensively, then we'll start to see library abstractions where you pass angles in or out as radians instead of as degrees. So now, we've got some library abstractions that use degrees, and some that use radians, and users will need to write code to convert between degrees and angles in order to glue these things together. And maybe some of these library functions & modules will add use_radians= arguments in order to follow the standard set by the trig functions, but it's a lot of extra work and complication to do that, so many authors won't bother.On 21 March 2014 16:53, Johannes Reinhardt <[hidden email]> wrote:
_______________________________________________ OpenSCAD mailing list [hidden email] http://rocklinux.net/mailman/listinfo/openscad http://openscad.org  https://flattr.com/thing/121566 
I did a quick survey of about 15 members of my local makerspace. Lots of CNC and 3d printing going on there. The usual response was "Huh?? Radians?? I never use radians."
On Fri, Mar 21, 2014 at 5:23 PM, doug moen <[hidden email]> wrote:
_______________________________________________ OpenSCAD mailing list [hidden email] http://rocklinux.net/mailman/listinfo/openscad http://openscad.org  https://flattr.com/thing/121566 
In reply to this post by Johannes Reinhardt
Why not:
sin (radians=pi/2) Wouldn't this be more consistent with other language features like being able to specify the same circle in the following ways: circle(10) circle(r=10) circle(d=20) 
Perhaps it would also be a good idea to allow linear_extrude(h=10)
(h instead of height) On 28 March 2014 07:35, Greg Frost <[hidden email]> wrote: > Why not: > sin (radians=pi/2) > > Wouldn't this be more consistent with other language features like being > able to specify the same circle in the following ways: > > circle(10) > circle(r=10) > circle(d=20) > > > >  > View this message in context: http://forum.openscad.org/Degreesinsteadofradianstp7398p7510.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > _______________________________________________ > OpenSCAD mailing list > [hidden email] > http://rocklinux.net/mailman/listinfo/openscad > http://openscad.org  https://flattr.com/thing/121566 OpenSCAD mailing list [hidden email] http://rocklinux.net/mailman/listinfo/openscad http://openscad.org  https://flattr.com/thing/121566 
In reply to this post by Greg Frost
Perhaps it would also be a good idea to allow linear_extrude(h=10)
(h instead of height) On 28 March 2014 07:35, Greg Frost <[hidden email]> wrote: > Why not: > sin (radians=pi/2) > > Wouldn't this be more consistent with other language features like being > able to specify the same circle in the following ways: > > circle(10) > circle(r=10) > circle(d=20) > > > >  > View this message in context: http://forum.openscad.org/Degreesinsteadofradianstp7398p7510.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > _______________________________________________ > OpenSCAD mailing list > [hidden email] > http://rocklinux.net/mailman/listinfo/openscad > http://openscad.org  https://flattr.com/thing/121566 OpenSCAD mailing list [hidden email] http://rocklinux.net/mailman/listinfo/openscad http://openscad.org  https://flattr.com/thing/121566 
Administrator

In reply to this post by sclaes
On Mar 28, 2014, at 05:58 AM, Stefaan Claes <[hidden email]> wrote:
> Perhaps it would also be a good idea to allow linear_extrude(h=10) > That would make sense. I always mistype it. Marius _______________________________________________ OpenSCAD mailing list [hidden email] http://rocklinux.net/mailman/listinfo/openscad http://openscad.org  https://flattr.com/thing/121566 
Free forum by Nabble  Edit this page 