POV-Ray : Newsgroups : povray.pov4.discussion.general : Scale Postfixes Server Time25 May 2024 18:53:22 EDT (-0400)
 Scale Postfixes (Message 11 to 15 of 15)
 From: clipka Subject: Re: Scale Postfixes Date: 5 Aug 2009 10:15:01 Message: <4a7993e5@news.povray.org>
```
{
"@context": "https://schema.org",
"@type": "DiscussionForumPosting",
"@id": "#4a7993e5%40news.povray.org",
"dateCreated": "2009-08-05T14:15:01+00:00",
"datePublished": "2009-08-05T14:15:01+00:00",
"author": {
"@type": "Person",
"name": "clipka"
}
}
Chambers schrieb:
> clipka wrote:
>> They're perfectly counter-intuitive for use in "rotate" though:
>
> True, they're meant for conversion rather than designation.
>
... which makes my point, because I'd love to have some means of
designation ;-)
```
 From: David H  Burns Subject: Re: Scale Postfixes Date: 5 Aug 2009 10:27:22 Message: <4a7996ca\$1@news.povray.org>
```
{
"@context": "https://schema.org",
"@type": "DiscussionForumPosting",
"@id": "#4a7996ca%241%40news.povray.org",
"dateCreated": "2009-08-05T14:27:22+00:00",
"datePublished": "2009-08-05T14:27:22+00:00",
"author": {
"@type": "Person",
"name": "David H  Burns"
}
}
Chambers wrote:
> David H. Burns wrote:
>> "Rad" and "deg" for angles and rotation *would* be useful.
>
>
> // Declares the variable rad to be 45 degrees converted into radians.
>
> // Declares the variable deg to be 0.3 radians converted into degrees.
> #declare deg = degrees(0.3);
>

```
 From: David H  Burns Subject: Re: Scale Postfixes Date: 5 Aug 2009 10:30:36 Message: <4a79978c\$1@news.povray.org>
```
{
"@context": "https://schema.org",
"@type": "DiscussionForumPosting",
"@id": "#4a79978c%241%40news.povray.org",
"dateCreated": "2009-08-05T14:30:36+00:00",
"datePublished": "2009-08-05T14:30:36+00:00",
"author": {
"@type": "Person",
"name": "David H  Burns"
}
}
clipka wrote:
> Chambers schrieb:
>> David H. Burns wrote:
>>> "Rad" and "deg" for angles and rotation *would* be useful.
>>
>>
>> // Declares the variable rad to be 45 degrees converted into radians.
>>
>> // Declares the variable deg to be 0.3 radians converted into degrees.
>> #declare deg = degrees(0.3);
>>
> They're perfectly counter-intuitive for use in "rotate" though:
>
>    // trying to express that I intend to rotate by 45 degrees,
>    rotate x * degrees(45)
>
>    // trying to express that I intend to rotate by 0.3 radians,
>    // with the effect of rotating by something particularly useless
True too. "Built in" unit definitions would be useful, maybe with a
default that could
be set as in calculators?
```
 From: Warp Subject: Re: Scale Postfixes Date: 6 Aug 2009 12:49:11 Message: <4a7b0986@news.povray.org>
```
{
"@context": "https://schema.org",
"@type": "DiscussionForumPosting",
"@id": "#4a7b0986%40news.povray.org",
"dateCreated": "2009-08-06T16:49:11+00:00",
"datePublished": "2009-08-06T16:49:11+00:00",
"author": {
"@type": "Person",
"name": "Warp"
}
}
clipka <ano### [at] anonymousorg> wrote:
> They're perfectly counter-intuitive for use in "rotate" though:

>     // trying to express that I intend to rotate by 45 degrees,
>     rotate x * degrees(45)

>     // trying to express that I intend to rotate by 0.3 radians,
>     // with the effect of rotating by something particularly useless

#declare deg = 1;

rotate x * 45*deg

--
- Warp
```
 From: clipka Subject: Re: Scale Postfixes Date: 6 Aug 2009 13:14:15 Message: <4a7b0f67\$1@news.povray.org>
```
{
"@context": "https://schema.org",
"@type": "DiscussionForumPosting",
"@id": "#4a7b0f67%241%40news.povray.org",
"dateCreated": "2009-08-06T17:14:15+00:00",
"datePublished": "2009-08-06T17:14:15+00:00",
"author": {
"@type": "Person",
"name": "clipka"
}
}
Warp schrieb:
> clipka <ano### [at] anonymousorg> wrote:
>> They're perfectly counter-intuitive for use in "rotate" though:
>
>>     // trying to express that I intend to rotate by 45 degrees,
>>     rotate x * degrees(45)
>
>>     // trying to express that I intend to rotate by 0.3 radians,
>>     // with the effect of rotating by something particularly useless
>
> #declare deg = 1;
>
> rotate x * 45*deg

#declare Foo = sin(45*deg);