POV-Ray : Newsgroups : povray.general : Maths help Server Time
6 Nov 2024 00:29:03 EST (-0500)
  Maths help (Message 1 to 2 of 2)  
From: Nathan O'Brien
Subject: Maths help
Date: 14 Mar 1999 04:01:28
Message: <36EB84FF.EE1F5413@no13.net>
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

From: Nieminen Mika
Subject: Re: Maths help
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.