1 /* 2 * This file is part of Siril, an astronomy image processor. 3 * Copyright (C) 2005-2011 Francois Meyer (dulle at free.fr) 4 * Copyright (C) 2012-2021 team free-astro (see more in AUTHORS file) 5 * Reference site is https://free-astro.org/index.php/Siril 6 * 7 * Siril is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * Siril is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with Siril. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #ifndef SRC_CORE_SIRIL_WORLD_CS_H_ 21 #define SRC_CORE_SIRIL_WORLD_CS_H_ 22 23 #include <glib.h> 24 25 typedef struct _SirilWorldCS SirilWorldCS; 26 27 SirilWorldCS *siril_world_cs_ref(SirilWorldCS *world_cs); 28 void siril_world_cs_unref(SirilWorldCS *world_cs); 29 SirilWorldCS* siril_world_cs_new_from_a_d(gdouble alpha, gdouble delta); 30 SirilWorldCS* siril_world_cs_new_from_ra_dec(gdouble ra_h, gdouble ra_m, gdouble ra_s, gdouble dec_deg, gdouble dec_m, gdouble dec_s); 31 SirilWorldCS* siril_world_cs_new_from_objct_ra_dec(gchar *objctra, gchar *objctdec); 32 gdouble siril_world_cs_get_alpha(SirilWorldCS *world_cs); 33 gdouble siril_world_cs_get_delta(SirilWorldCS *world_cs); 34 gchar* siril_world_cs_delta_format(SirilWorldCS *world_cs, const gchar *format); 35 gchar* siril_world_cs_alpha_format(SirilWorldCS *world_cs, const gchar *format); 36 void siril_world_cs_get_ra_hour_min_sec(SirilWorldCS *world_cs, int *hour, int *min, double *sec); 37 void siril_world_cs_get_dec_deg_min_sec(SirilWorldCS *world_cs, int *deg, int *min, double *sec); 38 39 #endif /* SRC_CORE_SIRIL_WORLD_CS_H_ */ 40