12 #ifndef __UT_Polynomial2_H__
13 #define __UT_Polynomial2_H__
20 #define UT_BASIS_NONE 0
21 #define UT_BASIS_BEZIER 1
22 #define UT_BASIS_POWER 2
23 #define UT_BASIS_LINOP 3 // Linear operator, not a polynomial.
34 void init(
int udeg,
int vdeg);
37 void resize(
int udeg,
int vdeg);
50 void makeBezBasisOp();
51 void makePowBasisOp();
68 void setBasis(
int newbasis) { myBasisType = newbasis; }
71 int degreeU()
const {
return myMatrix.getNRH(); }
72 int degreeV()
const {
return myMatrix.getNCH(); }
75 void reduceDegree(
fpreal tol = 1e-5);
85 {
return myMatrix(u, v); }
OIIO_UTIL_API bool copy(string_view from, string_view to, std::string &err)
float & operator()(int u, int v)
GLsizei GLboolean transpose
GA_API const UT_StringHolder scale
void setBasis(int newbasis)
fpreal operator()(int u, int v) const
ImageBuf OIIO_API resize(const ImageBuf &src, string_view filtername="", float filterwidth=0.0f, ROI roi={}, int nthreads=0)
ImageBuf OIIO_API add(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
ImageBuf OIIO_API zero(ROI roi, int nthreads=0)