Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QHash<QString,QVector<QPointF> > templates = GeometricTemplates::getInstance()->templates();
- // for (int i=0; i<GeometricTemplates::getInstance()->templates().count(); i++)
- for (int i=0; i<templates.count(); i++)
- {
- // double distance = distanceAtBestAngle(points, GeometricTemplates::getInstance()->templates().values.at(i));
- double distance = distanceAtBestAngle(points, templates.values.at(i));
- if (distance < bestDistance)
- {
- bestDistance = distance;
- indexOfBestMatch = i;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement