POV-Ray : Newsgroups : povray.general : Maths help : Re: Maths help Server Time
12 Aug 2024 07:25:27 EDT (-0400)
  Re: Maths help  
From: Nieminen Mika
Date: 14 Mar 1999 11:18:08
Message: <36ebe140.0@news.povray.org>
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

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