rename header files from *.h to *.hpp

This commit is contained in:
Rasmus Karlsson
2017-06-11 09:31:45 +02:00
parent 961f22819e
commit 1c6ff37e76
104 changed files with 327 additions and 326 deletions
+20
View File
@@ -0,0 +1,20 @@
#pragma once
#include <math.h>
namespace chatterino {
namespace util {
static float distanceBetweenPoints(const QPointF &p1, const QPointF &p2)
{
QPointF tmp = p1 - p2;
float distance = 0.f;
distance += tmp.x() * tmp.x();
distance += tmp.y() * tmp.y();
return sqrt(distance);
}
} // namespace util
} // namespace chatterino