POV-Ray : Newsgroups : povray.advanced-users : Average of vectors? : Average of vectors? Server Time
26 Sep 2024 17:44:39 EDT (-0400)
  Average of vectors?  
From: Rune
Date: 7 Jan 2001 15:46:31
Message: <3a58d5a7@news.povray.org>
Imagine two vectors, A and B.
C is a regular weighted average of the two vectors, say clock*A +
(1-clock)*B.

With this type of average the vector-point is linearly "interpolated", but
the rotation and length of the vector is not.

To make the length of C linearly interpolated is easy, but how do I linearly
interpolate the "rotation"?

I need a general method that can average not just two, but multiple vectors.
How can I do this?

Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated January 6)
/ Also visit http://www.povrayusers.org


Post a reply to this message

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