POV-Ray : Newsgroups : povray.general : A little math help please. : Re: A little math help please. Server Time
20 Nov 2024 12:26:01 EST (-0500)
  Re: A little math help please.  
From: Andy Cocker
Date: 1 Sep 2001 10:08:11
Message: <3b90ebcb@news.povray.org>
"Tek" <tek### [at] evilsuperbraincom> wrote in message
news:3b90a8bc@news.povray.org...
> Not sure if this is what you mean, but if you want to generate other
points on
> the line you could do this:
> dir = B - A
> C = A + dir*0.6
> D = A + dir*2.0
>
> Then just change the 0.6 and 2.0 according to where you want the points to
be
> (if you use 1.0 the point will be in the same place as B, and if you use
0.0 it
> will be in the same place as A)

Yes, that's it, thanks. Seems really obvious now you've shown me it.

Andy Cocker


Post a reply to this message

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