18 lines
319 B
C++
18 lines
319 B
C++
|
#pragma once
|
||
|
|
||
|
#include <vector>
|
||
|
|
||
|
namespace cvpr
|
||
|
{
|
||
|
class IBSpline {
|
||
|
public:
|
||
|
virtual ~IBSpline() = default;
|
||
|
|
||
|
virtual void create(const std::vector<std::vector<double>>& points, int degree) = 0;
|
||
|
|
||
|
virtual bool isValid() = 0;
|
||
|
|
||
|
virtual std::vector<double> eval(double t) = 0;
|
||
|
};
|
||
|
}
|