proj home

Files   Classes   Functions   Hierarchy  

bernsteinPolyProd Class Reference

A product of two Bernstein polynomials. More...

#include <bernstein.h>

Collaboration diagram for bernsteinPolyProd:

List of all members.

Public Member Functions

void construct ()
 Realizes the function with the current values.
 bernsteinPolyProd (uintc n0_, uintc i0_, uintc n1_, uintc i1_)
 Construct the function.
void eval (double &res, doublec u, doublec v) const
 Evaluate the function at (u,v).
doublec eval (doublec u, doublec v) const
 Evaluate the function at (u,v).

Public Attributes

bernsteinPoly b0
bernsteinPoly b1


Detailed Description

A product of two Bernstein polynomials.

Defined as B(n0,i0)*B(n1,i1) where B is the Bernstein polynomial.

Definition at line 47 of file bernstein.h.


Constructor & Destructor Documentation

bernsteinPolyProd::bernsteinPolyProd ( uintc  n0_,
uintc  i0_,
uintc  n1_,
uintc  i1_ 
)

Construct the function.

Definition at line 64 of file bernstein.cpp.

00070   : b0(n0_,i0_), b1(n1_,i1_)
00071 {
00072   construct();
00073 }


Member Function Documentation

void bernsteinPolyProd::construct (  ) 

Realizes the function with the current values.

Definition at line 47 of file bernstein.cpp.

References b0, b1, and bernsteinPoly::construct().

00048 {
00049   b0.construct();
00050   b1.construct();
00051 }

doublec bernsteinPolyProd::eval ( doublec  u,
doublec  v 
) const [inline]

Evaluate the function at (u,v).

Definition at line 69 of file bernstein.h.

References eval().

Referenced by eval().

00070     { double res; eval(res,u,v); return res; }

void bernsteinPolyProd::eval ( double &  res,
doublec  u,
doublec  v 
) const

Evaluate the function at (u,v).

Definition at line 54 of file bernstein.cpp.

00059 {
00060   res = b0.eval(u)*b1.eval(v);
00061 }


Member Data Documentation

Definition at line 51 of file bernstein.h.

Referenced by construct().

Definition at line 52 of file bernstein.h.

Referenced by construct().


The documentation for this class was generated from the following files:

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