QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
35 for (
int n = 1; n <= int(
mControlPoly->count() - 1 ); n++ )
49 QgsDebugMsg( QStringLiteral(
"warning: null pointer" ) );
62 for (
int n = 1; n <= int(
mControlPoly->count() ); n++ )
73 QgsDebugMsg( QStringLiteral(
"warning: null pointer" ) );
91 for (
int n = 1; n <= int( nodes - 2 ); n++ )
105 QgsDebugMsg( QStringLiteral(
"warning: null pointer" ) );
117 pointer[i] = ( *mControlPoly )[i];
129 QgsDebugMsg( QStringLiteral(
"warning: null pointer" ) );
void setY(double y)
Sets the point's y-coordinate.
void setX(double x)
Sets the x-component of the vector.
Point geometry type, with support for z-dimension and m-values.
void calcFirstDer(float t, Vector3D *v) override
Calculates the first derivative and assigns it to v.
void setX(double x)
Sets the point's x-coordinate.
double getZ() const
Returns the z-component of the vector.
void calcSecDer(float t, Vector3D *v) override
Calculates the second derivative and assigns it to v.
double getY() const
Returns the y-component of the vector.
void setZ(double z)
Sets the point's z-coordinate.
void setY(double y)
Sets the y-component of the vector.
void changeDirection() override
Changes the order of control points.
void setZ(double z)
Sets the z-component of the vector.
int ANALYSIS_EXPORT faculty(int n)
Faculty function.
double ANALYSIS_EXPORT calcBernsteinPoly(int n, int i, double t)
Calculates the value of a Bernstein polynomial.
QVector< QgsPoint * > * mControlPoly
MControlPoly stores the points of the control polygon.
void calcPoint(float t, QgsPoint *p) override
Calculates the point on the curve and assigns it to p.
double getX() const
Returns the x-component of the vector.