POV-Ray : Newsgroups : povray.pov4.discussion.general : Scale Postfixes : Re: Scale Postfixes Server Time
21 Apr 2024 04:58:56 EDT (-0400)
  Re: Scale Postfixes  
From: Warp
Date: 6 Aug 2009 12:49:11
Message: <4a7b0986@news.povray.org>
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,
>     // with the effect of rotating by 45 radians instead
>     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
>     rotate y * radians(0.3)

#declare deg = 1;
#declare rad = radians(1);

rotate x * 45*deg
rotate y * 0.3*rad

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.