File: autosplinecurve.h

package info (click to toggle)
amoeba 1.1-26
  • links: PTS
  • area: contrib
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 1,256 kB
  • ctags: 1,561
  • sloc: cpp: 8,315; makefile: 173
file content (21 lines) | stat: -rw-r--r-- 414 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef _AUTOSPLINECURVE_H
#define _AUTOSPLINECURVE_H

#include "main/curve.h"

class AutoSplineCurve : public Curve {
protected:
	float deriv[256];

public:
	AutoSplineCurve();
	~AutoSplineCurve();

	void add_curvepoint(float x, float y);
	void end_curvepoints(float start, float length);
	float get_value(float x);

	int get_curvetype() { return CURVE_AUTOSPLINE; }
};

#endif /* !defined(_AUTOSPLINECURVE_H) */