diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2018-04-05 13:20:20 +0200 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2018-04-05 13:20:20 +0200 |
commit | 1a71fd8efa0350d1e121f6792e8fad67e82b25c1 (patch) | |
tree | 0e706cf35256c5195974105218ad2b6ea49e1193 /src/util.h | |
parent | 8b8ea9395bdda4bb1404497ff654b82098084822 (diff) |
fixed name conflict, now builds in MSVC
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -6,8 +6,13 @@ #define UTIL_H #include <QPoint> +#include <QString> #include <cmath> +#ifndef M_PI +#define M_PI 3.14159265358979323846264338327950288 +#endif + // interpolate on a cubic bezier curve float bezierInterpolate(float dist, float c0, float c1, float c2, float c3); QPointF bezierInterpolateFull (float dist, QPointF c0, QPointF c1, QPointF c2, QPointF c3); @@ -15,6 +20,7 @@ QPointF bezierInterpolateFull (float dist, QPointF c0, QPointF c1, QPointF c2, Q // rounding float roundToNearest(float stepSize, float val); float radiansToDegrees (float radians); +QString floatToString(float f); // angles float degreesToRadians(float degrees); |