The old way of dealing with hpix_resolution_t was difficult to use with FFIs, as it required to access every member of the structure. The API has changed so that now hpix_resolution_t is dynamically allocated on the heap, and helper functions provide access to its most important members. Beware that this commit breaks API compatibility!
…to_nest_pixel The number of tests for these functions has been greatly increased, and now it samples the whole sphere uniformly. This allows to test every branch of the implementation of the two functions.
… to 'const hpix_resolution_t *'
Every time a map containing unseen pixels was read by "hpix_load_fits_component_from_fitsptr", there was a SEGFAULT. This was caused by passing NULL to the "anynull" parameter of fits_read_col_dbl: the CFITSIO manual does not say a word about it, but it seems that the function does not check if the pointer is NULL or not. The body of the function has been simplified.
Many changes: (1) the file config.h is now properly used (hopefully) everywhere; (2) Cairo-related functions have been moved from hpixlib/hpix.h to hpixlib/hpix-cairo.h; (3) the documentation has now a new section called "Using the library".
The symbol UNICODE MINUS SIGN (U+2212) is now used instead of an hyphen in drawing the color bar labels.
…x_calc_angular_distance_from_angles Test cases are already in place, but both functions are not implemented yet.
sqrt((1-v) * (1+v)) -> cos(asin(v)) (since asin(v) already needs to be calculated).
… well) Functions containing the "3dvec" string in the name (e.g. hpix_angles_to_3dvect) have been changed to use "vector" instead (hpix_angles_to_vector).
Functions hpix_vector_length and hpix_dot_product are now covered by test cases.