POV-Ray : Newsgroups : povray.general : access object attributes : Re: access object attributes Server Time
29 Jul 2024 02:31:59 EDT (-0400)
  Re: access object attributes  
From: Nekar Xenos
Date: 16 May 2013 23:23:28
Message: <op.ww7k1codufxv4h@xena>
On Thu, 16 May 2013 22:55:38 +0200, Christian Froeschlin <chr### [at] chrfrde>  
wrote:

>>>> min_extent(Object)+.5*(max_extent(Object)-minExtent(Object))
>>>
>>> Or 0.5*(min + max) if you're a fan of distributive law ;)
>>  It seems it's too long since I've done proper algebra. Your solution  
>> makes perfect sense, yet can't seem to get from my solution to yours  
>> algebraically.
>
> 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)

Of course. It helps to write it down and not just try and solve it in my  
mind ;)

-- 
-Nekar Xenos-


Post a reply to this message

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