The Interactive Geometry Software Cinderella

Forum: Cinderella Support (E)

Forums->Cinderella Support (E)->A matter of degree ...

Tide
2 stars
A matter of degree ...


Maybe I am just being dense and not seeing it in the documentation, but how do I enter the degree symbol in the Cindy Script Editor?



 
on: Sun 05 of Nov, 2006 [05:48 UTC] reads: 108875

Posted messages

author message
dirkd
3 stars
Re: A matter of degree ...
on: Sun 05 of Nov, 2006 [10:11 UTC]
Is it just the symbol you want, in a string perhaps? Then you can always copy and paste from Microsofts Character Map (you find in in the Accessories) if need be. (At least, it works here). If you want to do calculations with degrees, just use pi/180 instead.

Dirk


author message
Tide
2 stars
Re: Re: A matter of degree ...
on: Sun 05 of Nov, 2006 [11:41 UTC]
Thanks, Dirk, but the point was that the documentation says you can use the degree symbol in scripts as a replacement for the factor of pi/180. However, they don't tell you how to put it there. It's not really much of a shortcut if you have to copy and paste each time you want to use it so I thought they must have a key combination to insert it.

-Tide

> Is it just the symbol you want, in a string perhaps? Then you can always copy and paste from Microsofts Character Map (you find in in the Accessories) if need be. (At least, it works here). If you want to do calculations with degrees, just use pi/180 instead.
>
> Dirk


author message
Aw: Re: Re: A matter of degree ...
on: Sun 05 of Nov, 2006 [21:49 UTC]
Tide,

the problem with the degree sign is that it is just not available on US keyboards, as opposed to the German keyboards we are using here, where it is just next to the "1" key. Because we learned that during the Cinderella beta (thanks to our testers!!), we introduced a very nice (IMHO) shortcut for the Inspector fields that use degrees.

If the "use intelligent attributes" checkbox (in the inspector) is checked, then you can just omit the degree sign (in inspector fields), and Cinderella will figure out whether it is needed or not.

However, you are talking about the CindyScript editor. There this does not work, unfortunately, but you can always just write a helper function, for example:

deg(x):=x*pi/180;


or even

deg(x):=x°;


Does this help?

Ulli


author message
Tide
2 stars
Re: Aw: Re: Re: A matter of degree ...
on: Sun 05 of Nov, 2006 [23:54 UTC]
Ulli,

Yes, that does help! I was looking everywhere to see how to insert the degree symbol. May I suggest a "hot key" to insert the symbol in future revisions of Cinderella for those of us without sensible keyboards? :)

Thanks.

-Tide

P.S. This is a WONDERFUL program, by the way!

> Tide,
>
> the problem with the degree sign is that it is just not available on US keyboards, as opposed to the German keyboards we are using here, where it is just next to the "1" key. Because we learned that during the Cinderella beta (thanks to our testers!!), we introduced a very nice (IMHO) shortcut for the Inspector fields that use degrees.
>
> If the "use intelligent attributes" checkbox (in the inspector) is checked, then you can just omit the degree sign (in inspector fields), and Cinderella will figure out whether it is needed or not.
>
> However, you are talking about the CindyScript editor. There this does not work, unfortunately, but you can always just write a helper function, for example:
>
>
> deg(x):=x*pi/180;
> 

>
> or even
>
>
> deg(x):=x°;
> 

>
> Does this help?
>
> Ulli


author message
Aw: Re: Aw: Re: Re: A matter of degree ...
on: Mon 13 of Nov, 2006 [19:18 UTC]
I made a note for a feature request!

Ulli




Show posts:
 
Language