POV-Ray : Newsgroups : povray.general : access object attributes : Re: access object attributes Server Time
29 Jul 2024 02:35:17 EDT (-0400)
  Re: access object attributes  
From: Stephen
Date: 16 May 2013 17:17:42
Message: <51954cf6$1@news.povray.org>
On 16/05/2013 9:55 PM, Christian Froeschlin wrote:
> an algebraic mystification that is easily resolved ;)
>
>    1.0 * min + 0.5 * (max - min)
> = 1.0 * min + 0.5 * max - 0.5 * min
> = 0.5 * min + 0.5 * max
> = 0.5 * (min + max)

You are right of course.
But why put that "1.0 + " on the first line?

I think of it (the first line), from my mid 20th Cent schooling, as:
Half of the difference between max and min plus the "offset" of min.


-- 
Regards
     Stephen


Post a reply to this message

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