discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: Calculate points in an arc - tr

JB
Jordan Brown
Thu, Mar 31, 2022 7:28 PM

On 3/31/2022 12:17 PM, Jan Öhman via Discuss wrote:

But, how to convert to degrees from arc sin() - radians

OpenSCAD's trigonometry functions all operate in degrees.

echo(acos(0));

yields

ECHO: 90

If for some reason you need radians, there's nothing OpenSCAD-specific
about the conversion - just multiply by PI/180.  (Note that PI is a
built-in constant.)

On 3/31/2022 12:17 PM, Jan Öhman via Discuss wrote: > But, how to convert to degrees from *arc sin() - radians* > OpenSCAD's trigonometry functions all operate in degrees. echo(acos(0)); yields ECHO: 90 If for some reason you need radians, there's nothing OpenSCAD-specific about the conversion - just multiply by PI/180.  (Note that PI is a built-in constant.)