QUAD_COEFFS Class Reference

#include <quadratc.h>

List of all members.


Detailed Description

Used when computing splines, see quspline.cpp.

Definition at line 29 of file quadratc.h.

Public Member Functions

Public Attributes


Constructor & Destructor Documentation

QUAD_COEFFS::QUAD_COEFFS (  )  [inline]

Definition at line 32 of file quadratc.h.

00032                   { 
00033     }                            //empty constructor

QUAD_COEFFS::QUAD_COEFFS ( double  xsq,
float  x,
float  constant 
) [inline]

Definition at line 34 of file quadratc.h.

References a, b, and c.

00037                                 {
00038       a = xsq;
00039       b = x;
00040       c = constant;
00041     }


Member Function Documentation

void QUAD_COEFFS::move ( ICOORD  vec  )  [inline]

Definition at line 48 of file quadratc.h.

References a, b, c, and ICOORD::y().

Referenced by QSPLINE::move().

00049                           {  // by vector
00058       INT16 p = vec.x ();
00059       INT16 q = vec.y ();
00060 
00061       c = (float) (c - b * p + a * p * p + q);
00062       b = (float) (b - 2 * a * p);
00063     }

float QUAD_COEFFS::y ( float  x  )  const [inline]

Definition at line 43 of file quadratc.h.

References a, b, and c.

Referenced by QSPLINE::y().

00044                            {  //at x
00045       return (float) ((a * x + b) * x + c);
00046     }


Member Data Documentation

double QUAD_COEFFS::a

Definition at line 65 of file quadratc.h.

Referenced by QSPLINE::extrapolate(), move(), QSPLINE::QSPLINE(), QUAD_COEFFS(), tweak_row_baseline(), and y().

float QUAD_COEFFS::b

Definition at line 66 of file quadratc.h.

Referenced by QSPLINE::extrapolate(), move(), QSPLINE::QSPLINE(), QUAD_COEFFS(), tweak_row_baseline(), and y().

float QUAD_COEFFS::c

Definition at line 67 of file quadratc.h.

Referenced by QSPLINE::extrapolate(), move(), QSPLINE::QSPLINE(), QUAD_COEFFS(), tweak_row_baseline(), and y().


The documentation for this class was generated from the following file:
Generated on Wed Feb 28 19:49:33 2007 for Tesseract by  doxygen 1.5.1