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 calcPoint(float t, QgsPoint *p) override
Calculates the point on the curve and assigns it to p.
void calcFirstDer(float t, Vector3D *v) override
Calculates the first derivative and assigns it to v.
void changeDirection() override
Changes the order of control points.
void calcSecDer(float t, Vector3D *v) override
Calculates the second derivative and assigns it to v.
QVector< QgsPoint * > * mControlPoly
MControlPoly stores the points of the control polygon.
Point geometry type, with support for z-dimension and m-values.
void setX(double x) SIP_HOLDGIL
Sets the point's x-coordinate.
void setY(double y) SIP_HOLDGIL
Sets the point's y-coordinate.
void setZ(double z) SIP_HOLDGIL
Sets the point's z-coordinate.
Class Vector3D represents a 3D-Vector, capable to store x-,y- and z-coordinates in double values.
void setX(double x)
Sets the x-component of the vector.
double getY() const
Returns the y-component of the vector.
double getX() const
Returns the x-component of the vector.
void setY(double y)
Sets the y-component of the vector.
double getZ() const
Returns the z-component of the vector.
void setZ(double z)
Sets the z-component of the vector.
double ANALYSIS_EXPORT calcBernsteinPoly(int n, int i, double t)
Calculates the value of a Bernstein polynomial.
int ANALYSIS_EXPORT faculty(int n)
Faculty function.