35 for (
int n = 1; n <= int(
mControlPoly->count() - 1 ); n++ )
62 for (
int n = 1; n <= int(
mControlPoly->count() ); n++ )
91 for (
int n = 1; n <= int( nodes - 2 ); n++ )
117 pointer[i] = ( *mControlPoly )[i];
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 setY(double y)
Sets the point's y-coordinate.
void setX(double x)
Sets the point's x-coordinate.
void setZ(double z)
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.
#define QgsDebugError(str)