18.03.2013, 10:20
My problem is hard to be explained without pictures, so I created this:
Interesting problem. However solution is simple - intersecting circles equation. For example: http://answers.yahoo.com/question/in...1012843AAcLBwP
|
WillAreaCollapse(Float:x,Float:y,Float:radius)
{
new Float:dis,Float:radsum;
for(new i=0;i<MAX_ZONES;i++)
{
dis=GetDistanceBetweenPoints(x,y,0,CirclePosRad[i][0],CirclePosRad[i][1],0);
if(dis<50)
{
radsum=radius+CirclePosRad[i][2];
if(radsum>dis) return 1;
}
}
return 0;
}