pe_htmethod_new |
Creates a new htmethod.
PE_HTMETHOD pe_htmethod_new (const char *name, PE_HTMETHFUNC forward, PE_HTMETHFUNC inverse);
name | Name of the new htmethod |
forward | Forward transformation function for the new htmethod |
inverse | Inverse transformation function for the new htmethod |
Defines a new htmethod with the specified attributes. The PE_HTMETHFUNC structure is:
typedef int (*PE_HTMETHFUNC)( int num_values, double values[], int n, double coord[][2]);
We assume that new htmethods are designed for doing coordinate transformations using a polynomial method. Num_values is the number of elements needed for the method while the values array contains the elements. The n parameter is the number of points to be transformed while the coord array contains the X-values and Y-values. Htmethods are used to work with ADJHCS objects.
On success, the new htmethod with the attributes equal to the corresponding arguments. On failure, a null pointer.
PE_HTMETHOD helmert = pe_htmethod_new("Helmert_2D", &helm_f, &helm_i);