|
|
> How about more simply:
>
> distSq < 4 * max( radius1Sq, radius2Sq )
>
> Followed by the expensive square root operation to check if they really
> intersect?
Well, I'd have to weigh the cost of doing the square root against the cost
of just going forward and doing the more expensive test. Although I posed
this as a stand-alone question, the actual work I am doing is checking if a
line segment intersects a triangle.
There's probably a bunch of ways to make my code faster, but I became
curious about this particular problem.
- Slime
[ http://www.slimeland.com/ ]
Post a reply to this message
|
|