POV-Ray : Newsgroups : povray.off-topic : Bounding circle intersection : Re: Bounding circle intersection Server Time
4 Sep 2024 23:20:28 EDT (-0400)
  Re: Bounding circle intersection  
From: bart
Date: 11 Dec 2009 18:00:58
Message: <4b22cf2a$1@news.povray.org>
On 12/11/2009 02:43 AM, Slime wrote:
>> Have you tried this condition?
>>
>> ((distSq<  (radius1Sq+radius2Sq))
>> or (4*radius1Sq*radius2Sq>  (distSq - (radius1Sq+radius2Sq))^2))
>
> Smart. I feel stupid now! =) I see the equivalence, but I'm curious how long
> you took to come up with that. Was it obvious?
>

hmm, it looks that this sqrt-free test
will equally work in 3D for sphere-sphere intersection test.


Post a reply to this message

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