Re: Sphere to Triangle overlap check

Mark Wayland <[email protected]> Sat, 31 Jul 2010 00:27:23 +1000
Newsgroups gmane.games.devel.algorithms
Message-ID <[email protected]>
Yes, you are indeed correct - my mistake. I'm thinking subtraction and writing addition. That's what I get for posting on my phone after midnight ;-) Thanks for setting me straight!

Cheers,
Mark


On 31/07/2010, at 12:13 AM, Jon Watte <[email protected]> wrote:

> I don't see where I claim otherwise?
> You still need to subtract the edge from the hypotenuse, not add.
> 
> Sincerely,
> 
> jw
> 
> 
> --
> Americans might object: there is no way we would sacrifice our living standards for the benefit of people in the rest of the world. Nevertheless, whether we get there willingly or not, we shall soon have lower consumption rates, because our present rates are unsustainable. 
> 
> 
> 
> On Thu, Jul 29, 2010 at 2:57 PM, Mark Wayland <[email protected]> wrote:
> Yes, but if the sphere is intersecting the plane then the plane fist is guaranteed to be smaller in magnitude than the radius, is it not?
> 
> Cheers,
> Mark
> 
> 
> 
> On 29/07/2010, at 10:00 PM, Jon Watte <[email protected]> wrote:
> 
>> 
>> That's still not right -- you need to subtract the square of the shorter edge!
>> Assuming D is the distance from plane to sphere:
>> R*R = D*D + X*X
>> X = sqrt(R*R - D*D)
>> 
>> (And, yes, I was not paying attention -- I already thought you were squaring the values)
>> 
>> Sincerely,
>> 
>> jw
>> 
>> 
>> --
>> Americans might object: there is no way we would sacrifice our living standards for the benefit of people in the rest of the world. Nevertheless, whether we get there willingly or not, we shall soon have lower consumption rates, because our present rates are unsustainable. 
>> 
> 
> 
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://p.sf.net/sfu/dev2dev-palm
> _______________________________________________
> GDAlgorithms-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list
> Archives:
> http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithms-list

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm

_______________________________________________
GDAlgorithms-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithms-list