QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
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 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.
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 setX(double x) SIP_HOLDGIL
Sets the point's x-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.
void setY(double y) SIP_HOLDGIL
Sets the point's y-coordinate.
QVector< QgsPoint * > * mControlPoly
MControlPoly stores the points of the control polygon.
Class Vector3D represents a 3D-Vector, capable to store x-,y- and z-coordinates in double values.
void setZ(double z) SIP_HOLDGIL
Sets the point's z-coordinate.
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.