|
|
Hi all.
I'm after some help from the more mathematically minded. I'm currently
working on a new macro for my next IRTC entry. In short I need a pov
based macro to do the following.
Given that the world coordinate system has a positive normal along the Y
axis of <0,1,0>. I need to transform a point from the world coordinate
system to a new coordinate system where the positive normal along the Y
axis is <X,Y,Z>. (ie something other than <0,1,0>)
Please email me direct.... and many thanks in advance.
--
regards
Nathan O'Brien
no1### [at] no13net
http://www.no13.net
Post a reply to this message
|
|
|
|
Nathan O'Brien <no1### [at] no13net> wrote:
: Given that the world coordinate system has a positive normal along the Y
: axis of <0,1,0>. I need to transform a point from the world coordinate
: system to a new coordinate system where the positive normal along the Y
: axis is <X,Y,Z>. (ie something other than <0,1,0>)
I think that this can be achieved easyly with a matrix transformation.
See the section "Rotating from one vector to another" at
http://www.erols.com/vansickl/matrix.htm
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
|