wavelength 1.0.0
Loading...
Searching...
No Matches
polynomial.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "script/dataarray.h"
6
14public:
22
30
38 void Load(const DataArray *pData);
39
48 float Eval(float flX) const;
49
50private:
51 std::vector<float> mCoefficients;
52};
Reference-counted array of script data nodes.
Definition dataarray.h:20
float Eval(float flX) const
Evaluate the polynomial by Horner's rule.
~Polynomial()
Destroy the polynomial.
Polynomial()
Construct a polynomial with no coefficients.
void Load(const DataArray *pData)
Replace the coefficients with the nodes of an array after its tag.