daily pastebin goal
36%
SHARE
TWEET

Untitled

a guest Aug 12th, 2017 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   QHash<QString,QVector<QPointF> > templates = GeometricTemplates::getInstance()->templates();
  2.  
  3. //  for (int i=0; i<GeometricTemplates::getInstance()->templates().count(); i++)
  4.   for (int i=0; i<templates.count(); i++)
  5.   {
  6. //    double distance = distanceAtBestAngle(points, GeometricTemplates::getInstance()->templates().values.at(i));
  7.     double distance = distanceAtBestAngle(points, templates.values.at(i));
  8.  
  9.     if (distance < bestDistance)
  10.     {
  11.       bestDistance = distance;
  12.       indexOfBestMatch = i;
  13.     }
  14.   }
RAW Paste Data
Top