|
|
I know that these are not directly part of the problem,
but, s seems to be flagged as a reserved word in MegaPOV.
Tor Olav Kristensen wrote:
>
> Hello
>
> I'm trying to make some macros to enable me to
> experiment with different rotation matrix's. (That I
> later will apply to 3D vectors to get the desired
> rotation of the vector.)
>
><snip>
>
> #macro Mscale(s, MM)
>
> #local NN = array[3]
> #local NN[0] = s*MM[0];
> #local NN[1] = s*MM[1];
> #local NN[2] = s*MM[2];
>
> MM
>
> #end
>
> #macro Minv(MM)
>
> #local NN = array[3]
> #local PP = array[3]
> #local QQ = array[3]
> #local s = 1/Mdet(MM);
> #local NN = Mcof(MM)
> #local PP = Mtrans(NN)
> #local QQ = Mscale(s, PP)
>
> QQ
>
> #end
--
Mr. Art
"Often the appearance of reality is more important
than the reality of the appearance."
Bill DeWitt 2000
Post a reply to this message
|
|