proj home

Files   Classes   Functions   Hierarchy  

bernstein.h

Go to the documentation of this file.
00001 #ifndef BERNSTEIN_H
00002 #define BERNSTEIN_N
00003 
00004 
00005 #include <print.h>
00006 
00012 class bernsteinPoly
00013 {
00014 public:
00016   double coeff;
00017 
00019   uint n;
00021   uint i;
00022 
00024   void construct();
00025 
00027   void construct( uintc n_, uintc i_);
00028 
00030   bernsteinPoly() : coeff(0.0), n(0), i(0) {}
00031 
00033   bernsteinPoly( uintc n_, uintc i_);
00034 
00036   void eval(double & res, doublec t) const;
00038   doublec eval(doublec t) const
00039     { double res; eval(res,t); return res; }
00040 };
00041 
00047 class bernsteinPolyProd
00048 {
00049 public:
00050 
00051   bernsteinPoly b0;
00052   bernsteinPoly b1;
00053 
00055   void construct();
00056 
00058   bernsteinPolyProd
00059   ( 
00060     uintc n0_, 
00061     uintc i0_,
00062     uintc n1_, 
00063     uintc i1_
00064   );
00065 
00067   void eval(double & res, doublec u, doublec v) const;
00069   doublec eval(doublec u, doublec v) const
00070     { double res; eval(res,u,v); return res; }
00071 
00072 };
00073 
00074 /*
00075 p.498
00076 template
00077 class bernsteinPatch
00078 {
00079 public:
00080 
00081   uintc m;
00082   uintc n;
00083 
00084   bernsteinPatch(uintc m_, uintc n_)
00085 
00086 
00087 };
00088 */
00089 
00090 
00091 
00092 
00093 #endif
00094 
00095 

Generated on Fri Mar 4 00:49:28 2011 for Chelton Evans Source by  doxygen 1.5.8