S
Simply_Red
Hi,
is there a way to make this function faster???
struct Points {
double X;
double Y;
};
double Dist(Points First, Points Last)
{
return pow( (First.X-Last.X)*(First.X-Last.X) + (First.Y -
Last.Y)*(First.Y - Last.Y) ,0.5);
}
is there a way to make this function faster???
struct Points {
double X;
double Y;
};
double Dist(Points First, Points Last)
{
return pow( (First.X-Last.X)*(First.X-Last.X) + (First.Y -
Last.Y)*(First.Y - Last.Y) ,0.5);
}