QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Public 属性 | 所有成员列表
QwtSplinePolynomial类 参考

A cubic polynomial without constant term 更多...

#include <qwt_spline_polynomial.h>

Public 成员函数

 QwtSplinePolynomial (double c3=0.0, double c2=0.0, double c1=0.0)
 Constructor
 
bool operator== (const QwtSplinePolynomial &) const
 Compare two polynomials for equality
 
bool operator!= (const QwtSplinePolynomial &) const
 Compare two polynomials for inequality
 
double valueAt (double x) const
 Calculate the value of a polynomial for a given x
 
double slopeAt (double x) const
 Calculate the value of the first derivate of a polynomial for a given x
 
double curvatureAt (double x) const
 Calculate the value of the second derivate of a polynomial for a given x
 

静态 Public 成员函数

static QwtSplinePolynomial fromSlopes (const QPointF &p1, double m1, const QPointF &p2, double m2)
 Find the coefficients for the polynomial including 2 points with specific values for the 1st derivates at these points.
 
static QwtSplinePolynomial fromSlopes (double x, double y, double m1, double m2)
 Find the coefficients for the polynomial from the offset between 2 points and specific values for the 1st derivates at these points.
 
static QwtSplinePolynomial fromCurvatures (const QPointF &p1, double cv1, const QPointF &p2, double cv2)
 Find the coefficients for the polynomial including 2 points with specific values for the 2nd derivates at these points.
 
static QwtSplinePolynomial fromCurvatures (double dx, double dy, double cv1, double cv2)
 Find the coefficients for the polynomial from the offset between 2 points and specific values for the 2nd derivates at these points.
 

Public 属性

double c3
 coefficient of the cubic summand
 
double c2
 coefficient of the quadratic summand
 
double c1
 coefficient of the linear summand
 

详细描述

A cubic polynomial without constant term

QwtSplinePolynomial is a 3rd degree polynomial of the form: y = c3 * x³ + c2 * x² + c1 * x;

QwtSplinePolynomial is usually used in combination with polygon interpolation, where it is not necessary to store a constant term ( c0 ), as the translation is known from the corresponding polygon points.

参见
QwtSplineC1

构造及析构函数说明

◆ QwtSplinePolynomial()

QwtSplinePolynomial::QwtSplinePolynomial ( double  a3 = 0.0,
double  a2 = 0.0,
double  a1 = 0.0 
)
inline

Constructor

参数
[in]a3Coefficient of the cubic summand
[in]a2Coefficient of the quadratic summand
[in]a1Coefficient of the linear summand

成员函数说明

◆ curvatureAt()

double QwtSplinePolynomial::curvatureAt ( double  x) const
inline

Calculate the value of the second derivate of a polynomial for a given x

参数
[in]xParameter
返回
Curvature at x

◆ fromCurvatures() [1/2]

QwtSplinePolynomial QwtSplinePolynomial::fromCurvatures ( const QPointF &  p1,
double  cv1,
const QPointF &  p2,
double  cv2 
)
inlinestatic

Find the coefficients for the polynomial including 2 points with specific values for the 2nd derivates at these points.

参数
[in]p1First point
[in]cv1Value of the second derivate at p1
[in]p2Second point
[in]cv2Value of the second derivate at p2
返回
Coefficients of the polynomials
注解
The missing constant term of the polynomial is p1.y()

◆ fromCurvatures() [2/2]

QwtSplinePolynomial QwtSplinePolynomial::fromCurvatures ( double  dx,
double  dy,
double  cv1,
double  cv2 
)
inlinestatic

Find the coefficients for the polynomial from the offset between 2 points and specific values for the 2nd derivates at these points.

参数
[in]dxX-offset
[in]dyY-offset
[in]cv1Value of the second derivate at p1
[in]cv2Value of the second derivate at p2
返回
Coefficients of the polynomials

◆ fromSlopes() [1/2]

QwtSplinePolynomial QwtSplinePolynomial::fromSlopes ( const QPointF &  p1,
double  m1,
const QPointF &  p2,
double  m2 
)
inlinestatic

Find the coefficients for the polynomial including 2 points with specific values for the 1st derivates at these points.

参数
[in]p1First point
[in]m1Value of the first derivate at p1
[in]p2Second point
[in]m2Value of the first derivate at p2
返回
Coefficients of the polynomials
注解
The missing constant term of the polynomial is p1.y()

◆ fromSlopes() [2/2]

QwtSplinePolynomial QwtSplinePolynomial::fromSlopes ( double  dx,
double  dy,
double  m1,
double  m2 
)
inlinestatic

Find the coefficients for the polynomial from the offset between 2 points and specific values for the 1st derivates at these points.

参数
[in]dxX-offset
[in]dyY-offset
[in]m1Value of the first derivate at p1
[in]m2Value of the first derivate at p2
返回
Coefficients of the polynomials

◆ operator!=()

bool QwtSplinePolynomial::operator!= ( const QwtSplinePolynomial other) const
inline

Compare two polynomials for inequality

参数
[in]otherOther polynomial
返回
true, when the polynomials have different coefficients

◆ operator==()

bool QwtSplinePolynomial::operator== ( const QwtSplinePolynomial other) const
inline

Compare two polynomials for equality

参数
[in]otherOther polynomial
返回
true, when both polynomials have the same coefficients

◆ slopeAt()

double QwtSplinePolynomial::slopeAt ( double  x) const
inline

Calculate the value of the first derivate of a polynomial for a given x

参数
[in]xParameter
返回
Slope at x

◆ valueAt()

double QwtSplinePolynomial::valueAt ( double  x) const
inline

Calculate the value of a polynomial for a given x

参数
[in]xParameter
返回
Value at x

该类的文档由以下文件生成: