//计算两点之间的距离
double getDistance (Point2f point1, Point2f point2)
{
double distance = sqrtf(powf((point1.x - point2.x),2) + powf((point1.y - point2.y),2));
return distance;
}
//计算两点之间的距离
double getDistance (Point2f point1, Point2f point2)
{
double distance = sqrtf(powf((point1.x - point2.x),2) + powf((point1.y - point2.y),2));
return distance;
}