#include #include #include #include #include "G3d_intern.h" /*---------------------------------------------------------------------------*/ int G3d_isNullValueNum (void *n, int type) { if (type == G3D_FLOAT) return G_is_f_null_value (n); else return G_is_d_null_value (n); } /*---------------------------------------------------------------------------*/ /*! * \brief * * Fills the vector pointed to by c with nofElts NULL-values * of type. * * \param c * \param nofElts * \param type * \return void */ void G3d_setNullValue (void *c, int nofElts, int type) { if (type == G3D_FLOAT) { G_set_f_null_value ((float *) c, nofElts); return; } G_set_d_null_value ((double *) c, nofElts); }