mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 23:36:00 +02:00
Initial checkin
This commit is contained in:
parent
c74712dad9
commit
078564ac9e
3242 changed files with 1616395 additions and 0 deletions
24
BeefySysLib/util/BSpline.h
Normal file
24
BeefySysLib/util/BSpline.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
#pragma once
|
||||
|
||||
#include "Common.h"
|
||||
#include "Point.h"
|
||||
|
||||
NS_BF_BEGIN;
|
||||
|
||||
class BSpline2D
|
||||
{
|
||||
public:
|
||||
Array<Point2D> mInputPoints;
|
||||
int* mUVals;
|
||||
|
||||
public:
|
||||
BSpline2D();
|
||||
~BSpline2D();
|
||||
|
||||
void AddPt(float x, float y);
|
||||
|
||||
void Calculate();
|
||||
void Evaluate(float pct, float* x, float* y);
|
||||
};
|
||||
|
||||
NS_BF_END;
|
Loading…
Add table
Add a link
Reference in a new issue