#ifndef POINT_RECORDER_H
#define POINT_RECORDER_H

#include "ofMain.h"

#define OF_ADDON_USING_OFXVECTORMATH
#include "ofAddons.h"

typedef struct timePoint {
	ofPoint pos;
	float time;
} timePoint;

class pointRecorder {

	public:
	
        pointRecorder();
	
		ofxPoint2f middlePoint;
		float angle;
	
		void addPoint(ofPoint pt);
		void update();
		void clear();
		void draw();
		void drawAtTime(float time,int length,int spacing);
		float getDuration();
		ofPoint getPointForTime(float time);
	
		float startTime;
		int	 maxNumPts;
		vector <timePoint> pts;
	
		bool bAmRecording;
};

#endif // POINT_RECORDER_H
