mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 15:26:00 +02:00
Initial checkin
This commit is contained in:
parent
c74712dad9
commit
078564ac9e
3242 changed files with 1616395 additions and 0 deletions
30
BeefySysLib/util/PolySpline.h
Normal file
30
BeefySysLib/util/PolySpline.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
#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;
|
Loading…
Add table
Add a link
Reference in a new issue