POV-Ray : Newsgroups : povray.advanced-users : Why the min() step in angle between two vectors? : Re: Why the min() step in angle between two vectors? Server Time
29 Jul 2024 12:22:36 EDT (-0400)
  Re: Why the min() step in angle between two vectors?  
From:
Date: 26 Mar 2002 11:49:01
Message: <fa91au456a2b9o4nksr7vrvi9b0onrsh1h@4ax.com>
On Tue, 26 Mar 2002 10:40:41 -0600, "Shay" <sah### [at] simcopartscom> wrote:
> Povray finds the angle between two vectors like this like this: acos(min(1,
> vdot(vnormalize(V1), vnormalize(V2))))
> What is the purpose of the min()?

perhaps to prevent strange floating point accuracy problem ?

ABX


Post a reply to this message

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