|
![](/i/fill.gif) |
Rune wrote:
>
> #macro rotater(A)
> rotate <degrees(A.x),degrees(A.y),degrees(A.z)>
> #end
>
I usually add explicit vector promotion to such macros:
#macro rotater(A)
#local An = A + <0,0,0>;
rotate <degrees(An.x),degrees(An.y),degrees(An.z)>
#end
This is so you can use a float parameter like in regular rotate.
--
Margus Ramst
Personal e-mail: mar### [at] peak edu ee
TAG (Team Assistance Group) e-mail: mar### [at] tag povray org
Post a reply to this message
|
![](/i/fill.gif) |