mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps\shared] Create a folder shared/
Change-Id: I94e4474ff5ab3bf9db7afd5b3be57b985755ecdf
This commit is contained in:
21
apps/shared/curve_view_cursor.cpp
Normal file
21
apps/shared/curve_view_cursor.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#include "curve_view_cursor.h"
|
||||
#include <math.h>
|
||||
|
||||
CurveViewCursor::CurveViewCursor() :
|
||||
m_x(NAN),
|
||||
m_y(NAN)
|
||||
{
|
||||
}
|
||||
|
||||
float CurveViewCursor::x() {
|
||||
return m_x;
|
||||
}
|
||||
|
||||
float CurveViewCursor::y() {
|
||||
return m_y;
|
||||
}
|
||||
|
||||
void CurveViewCursor::moveTo(float x, float y) {
|
||||
m_x = x;
|
||||
m_y = y;
|
||||
}
|
||||
Reference in New Issue
Block a user