POV-Ray : Newsgroups : povray.advanced-users : Average of vectors? : Re: Average of vectors? Server Time
29 Jul 2024 20:26:25 EDT (-0400)
  Re: Average of vectors?  
From: David Fontaine
Date: 7 Jan 2001 19:10:25
Message: <3A590456.80845E16@faricy.net>
David Fontaine wrote:

> Make normalized copies of the two vectors, a and b.
> Find the angle, A, between them: 2*asin(vlength(b-a)/2).
> The vector you want is (a+b)/2 + tan(-A/2+A*clock)*vlength((a+b)/2)*vnorm(b-a)
> Where clock goes from 0 to 1 from vector a to vector b.

This math is untested BTW.

--
David Fontaine  <dav### [at] faricynet>  ICQ 55354965
My raytracing gallery:  http://davidf.faricy.net/


Post a reply to this message

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