public boolean intersect(int rx1,int ry1,int rx2,int ry2,int ex1,int ey1,int
ex2,int ey2)
{
if ((rx1<=ex2)&&(ry1<=ey2)&&(ex1<=rx2)&&(ey1<=ry2))
return true;
return false;
}
Mvh
Kristoffer
"Soren Staun Jorgensen" <ssj@get2net.dk> wrote in message
news:JuTX5.2561$7E2.224912@news101.telia.com...
> Hej,
>
> Hvordan afgøres det hurtigst om to vilkårlige rektangler overlapper
hinanden
> ??
>
> Søren Staun Jørgensen
> ---
> ssj@get2net.dk
>
>
>
|