POV-Ray : Newsgroups : povray.general : 3.5 vector question Server Time
19 Nov 2024 15:20:59 EST (-0500)
  3.5 vector question (Message 1 to 2 of 2)  
From: Tom Melly
Subject: 3.5 vector question
Date: 17 Jan 2002 08:12:20
Message: <3c46cdb4$1@news.povray.org>
Given an object with one end at <0,0,0> and aimed at <0,1,0>, how do I calculate
the necessery rotation to aim it at <A,B,C> ?

Thanks...
--
#macro G(D,E,F)#local I=array[3]{D,E,F}#local B=0;triangle{#while(
B<3)#while(I[B])A[mod(I[B],10)]+#local I[B]=div(I[B],10);#end<-5,-
2,9>#local B=B+1;#end}#end #local A=array[7]{x,x*2,x*4,y,y*2,y*4,z
}light_source{-x*6-z*9,1}mesh{G(105,10,146)G(105,246,10)G(105,56,
146)G(105,1256,246)G(1256,126,220)G(22156,2216,201)pigment{rgb 1}}//TM


Post a reply to this message

From:
Subject: Re: 3.5 vector question
Date: 17 Jan 2002 08:21:33
Message: <orjd4uc61c09lofks4bg3r0fn29d1f4066@4ax.com>
On Thu, 17 Jan 2002 13:12:19 -0000, "Tom Melly" <tom### [at] tomandlucouk> wrote:
> Given an object with one end at <0,0,0> and aimed at <0,1,0>, how do I calculate
> the necessery rotation to aim it at <A,B,C> ?

Check "Reorient_Trans" in documentation.

ABX


Post a reply to this message

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