radian versus degre

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

radian versus degre

fabrice senger-2
Hi
I'm just wondering what is the reason some operations are working with
angle values expressed in rad whereas others give angles in degre ?

I'm playing around with angle measurements wich in turn are used to rotate
features in my images and there I have to play around with the conversions
rad/deg

Wouldn't it be possible to definitly choose between rad or deg ?

Thank you,

Fabrice.

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: radian versus degre

Michael Schmid
Hi Fabrice,

which commands of ImageJ use radians?

I don't know all ImageJ commands, but as far as I remember all commands of the user interface are in degrees.  Also, I did not find the text 'radian' in the PDF users guide.

The trigonometric functions in Java and the macro language use radians, like all programing languages that I am aware of (except programmable pocket calculators, an almost extinct species).  So, when you write a macro that uses trigonometric functions, of course you need the factor of 180/PI = 57.2957795131 to convert.

Michael
________________________________________________________________
On Mar 5, 2014, at 12:07, Fabrice Senger wrote:

> Hi
> I'm just wondering what is the reason some operations are working with
> angle values expressed in rad whereas others give angles in degre ?
>
> I'm playing around with angle measurements wich in turn are used to rotate
> features in my images and there I have to play around with the conversions
> rad/deg
>
> Wouldn't it be possible to definitly choose between rad or deg ?
>
> Thank you,
>
> Fabrice.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: radian versus degre

fabrice senger-2
Yesss !

The trigonometric functions in Java and the macro language use radians, like
> all programing languages that I am aware of

That's it, quite simple.
And that is the reason why I have to play around between radians and
degrees. As I'm kind of lazy I thought the conversion between radians
and degrees might be automated some how. Anyway, I'm doing it in my
macros.

Thank you for your kind reply,

Fabrice.


2014-03-05 18:46 UTC+01:00, Michael Schmid <[hidden email]>:

> Hi Fabrice,
>
> which commands of ImageJ use radians?
>
> I don't know all ImageJ commands, but as far as I remember all commands of
> the user interface are in degrees.  Also, I did not find the text 'radian'
> in the PDF users guide.
>
> The trigonometric functions in Java and the macro language use radians, like
> all programing languages that I am aware of (except programmable pocket
> calculators, an almost extinct species).  So, when you write a macro that
> uses trigonometric functions, of course you need the factor of 180/PI =
> 57.2957795131 to convert.
>
> Michael
> ________________________________________________________________
> On Mar 5, 2014, at 12:07, Fabrice Senger wrote:
>
>> Hi
>> I'm just wondering what is the reason some operations are working with
>> angle values expressed in rad whereas others give angles in degre ?
>>
>> I'm playing around with angle measurements wich in turn are used to
>> rotate
>> features in my images and there I have to play around with the
>> conversions
>> rad/deg
>>
>> Wouldn't it be possible to definitly choose between rad or deg ?
>>
>> Thank you,
>>
>> Fabrice.
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html