19 #ifndef INCLUDED_TUIOPOINT_H 20 #define INCLUDED_TUIOPOINT_H 23 #include "OneEuroFilter.h" 27 #define M_PI 3.14159265358979323846 92 if (xposFilter)
delete xposFilter;
93 if (yposFilter)
delete yposFilter;
111 void update (
float xp,
float yp);
121 void update (
TuioTime ttime,
float xp,
float yp);
143 float getDistance(
float xp,
float yp)
const;
152 float getScreenDistance(
float xp,
float yp,
int w,
int h)
const;
159 float getDistance(
TuioPoint *tpoint)
const;
167 float getAngle(
float xp,
float yp)
const;
182 float getAngleDegrees(
float xp,
float yp)
const;
189 float getAngleDegrees(
TuioPoint *tpoint)
const;
196 int getScreenX(
int width)
const;
203 int getScreenY(
int height)
const;
217 void addPositionThreshold(
float thresh);
219 void removePositionThreshold();
221 void addPositionFilter(
float mcut,
float beta);
223 void removePositionFilter();
Definition: OneEuroFilter.h:49
float ypos
Definition: TuioPoint.h:49
Definition: TuioTime.h:48
Definition: FlashSender.h:166
TuioTime startTime
Definition: TuioPoint.h:57
Definition: TuioPoint.h:39
virtual ~TuioPoint()
Definition: TuioPoint.h:91
TuioTime currentTime
Definition: TuioPoint.h:53
float xpos
Definition: TuioPoint.h:45