mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
30 lines
356 B
C++
30 lines
356 B
C++
#pragma once
|
|
|
|
#include "Common.h"
|
|
#include "Point.h"
|
|
#include <vector>
|
|
|
|
NS_BF_BEGIN;
|
|
|
|
class PolySpline2D
|
|
{
|
|
public:
|
|
std::vector<PointF> mInputPoints;
|
|
|
|
|
|
public:
|
|
float* mCoefs;
|
|
|
|
public:
|
|
PolySpline2D();
|
|
~PolySpline2D();
|
|
|
|
void AddPt(float x, float y);
|
|
int GetLength();
|
|
|
|
void Calculate();
|
|
float Evaluate(float x);
|
|
};
|
|
|
|
|
|
NS_BF_END;
|