Blame view

build1/epsilon-master/apps/shared/curve_view_cursor.h 358 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  #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