1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00
Beef/BeefySysLib/util/PolySpline.h

31 lines
357 B
C
Raw Normal View History

2019-08-23 11:56:54 -07:00
#pragma once
#include "Common.h"
#include "Point.h"
#include <vector>
NS_BF_BEGIN;
class PolySpline2D
{
public:
std::vector<Point2D> mInputPoints;
public:
float* mCoefs;
public:
PolySpline2D();
~PolySpline2D();
void AddPt(float x, float y);
int GetLength();
void Calculate();
float Evaluate(float x);
};
NS_BF_END;