Files
Upsilon/apps/shared/curve_view_cursor.h
Émilie Feral f0a776a670 [apps] Operations in double when precision required
Change-Id: I7168a861a76178f0bf81841e9378f7399f67914a
2017-08-17 09:31:53 +02:00

22 lines
358 B
C++

#ifndef SHARED_CURVE_VIEW_CURSOR_H
#define SHARED_CURVE_VIEW_CURSOR_H
namespace Shared {
class CurveViewCursor {
public:
CurveViewCursor();
double x();
double y();
void moveTo(double x, double y);
private:
static double clipped(double f, bool canBeInfinite);
constexpr static double k_maxFloat = 1E+8;
double m_x;
double m_y;
};
}
#endif