|
|
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
|
|