GEOakimaParameter |
Top Previous Next |
Calculates Spline coefficients. This function calculates the coefficients for the interpolation of the curve course between a Splinepunkt and his predecessor. Afterwards is able with the functions GEOakimaInterpolation or GEOakimaInterpolationArray the curve become between both points approximiert. For example, the coefficients would have to be calculated with three Splinepunkten twice, once for the curve between the first and second point and once for the curve between the second and third point. The coefficients are dependent on the index of the Splinepunkts and on his neighbours. This requires to hand over all Splinepunkte. Parametre xfeld [] (stands in) [IN] yfeld [] (stands in) [IN] The x and Y co-ordinates of the Splinepunkte. ipanz (int) [IN] The number of the Splinepunkte. ivnr (int) [IN] The index of the point for which the coefficients are to be calculated. He must be at least immediately one and smaller than the number of the Splinepunkte. koeff [] (stands in) [OUT] The anew calculated coefficients, the field must own the suitable length. Result (long int) [OUT] 0 - OK: successful calculation. 1 - Mistake: Calculation not possibly. Declaration #include "basic.h"
long int DLLENTRY GEOakimaParameter ( stand in xfeld [], stand in yfeld [], int ipanz, int ivnr, stand in koeff [] ); Example stand in koeff [9]; status = GEOakimaParameter (x, y, 6, 1, koeff); x and y if the co-ordinates of a Splines with 6 points must contain. The coefficients for the first piece of the Splines – between the points with the indexes 0 and 1 – are calculated and in koeff returned. status must have afterwards the value 0.
|