| 1 | |||
| 2 | MODULE = Astro::Nova PACKAGE = Astro::Nova PREFIX=ln_ | ||
| 3 | |||
| 4 | |||
| 5 | const char* | ||
| 6 | ln_get_version() | ||
| 7 | |||
| 8 | double | ||
| 9 | ln_get_dec_location(char* s) | ||
| 10 | |||
| 11 | const char* | ||
| 12 | ln_get_humanr_location(double location) | ||
| 13 | |||
| 14 | double | ||
| 15 | ln_get_rect_distance(struct ln_rect_posn* a, struct ln_rect_posn* b) | ||
| 16 | |||
| 17 | double | ||
| 18 | ln_rad_to_deg(double radians) | ||
| 19 | |||
| 20 | double | ||
| 21 | ln_deg_to_rad(double degrees) | ||
| 22 | |||
| 23 | double | ||
| 24 | ln_hms_to_deg(struct ln_hms* hms) | ||
| 25 | |||
| 26 | struct ln_hms* | ||
| 27 | ln_deg_to_hms(double degrees) | ||
| 28 | INIT: | ||
| 29 | 1 | const char* CLASS = "Astro::Nova::HMS"; | |
| 30 | CODE: | ||
| 31 | 1 | Newx(RETVAL, 1, struct ln_hms); | |
| 32 | 1 | ln_deg_to_hms(degrees, RETVAL); | |
| 33 | OUTPUT: | ||
| 34 | RETVAL | ||
| 35 | |||
| 36 | double | ||
| 37 | ln_hms_to_rad(struct ln_hms* hms) | ||
| 38 | |||
| 39 | struct ln_hms* | ||
| 40 | ln_rad_to_hms(double radians) | ||
| 41 | INIT: | ||
| 42 | 0 | const char* CLASS = "Astro::Nova::HMS"; | |
| 43 | CODE: | ||
| 44 | 0 | Newx(RETVAL, 1, struct ln_hms); | |
| 45 | 0 | ln_rad_to_hms(radians, RETVAL); | |
| 46 | OUTPUT: | ||
| 47 | RETVAL | ||
| 48 | |||
| 49 | double | ||
| 50 | ln_dms_to_deg(struct ln_dms* dms) | ||
| 51 | |||
| 52 | struct ln_dms* | ||
| 53 | ln_deg_to_dms(double degrees) | ||
| 54 | INIT: | ||
| 55 | 1 | const char* CLASS = "Astro::Nova::DMS"; | |
| 56 | CODE: | ||
| 57 | 1 | Newx(RETVAL, 1, struct ln_dms); | |
| 58 | 1 | ln_deg_to_dms(degrees, RETVAL); | |
| 59 | OUTPUT: | ||
| 60 | RETVAL | ||
| 61 | |||
| 62 | double | ||
| 63 | ln_dms_to_rad(struct ln_dms* dms) | ||
| 64 | |||
| 65 | struct ln_dms* | ||
| 66 | ln_rad_to_dms(double radians) | ||
| 67 | INIT: | ||
| 68 | 0 | const char* CLASS = "Astro::Nova::DMS"; | |
| 69 | CODE: | ||
| 70 | 0 | Newx(RETVAL, 1, struct ln_dms); | |
| 71 | 0 | ln_rad_to_dms(radians, RETVAL); | |
| 72 | OUTPUT: | ||
| 73 | RETVAL | ||
| 74 | |||
| 75 | struct ln_equ_posn* | ||
| 76 | ln_hequ_to_equ(struct lnh_equ_posn* hpos); | ||
| 77 | INIT: | ||
| 78 | 0 | const char* CLASS = "Astro::Nova::EquPosn"; | |
| 79 | CODE: | ||
| 80 | 0 | Newx(RETVAL, 1, struct ln_equ_posn); | |
| 81 | 0 | ln_hequ_to_equ(hpos, RETVAL); | |
| 82 | OUTPUT: | ||
| 83 | RETVAL | ||
| 84 | |||
| 85 | struct lnh_equ_posn* | ||
| 86 | ln_equ_to_hequ(struct ln_equ_posn* pos); | ||
| 87 | INIT: | ||
| 88 | 0 | const char* CLASS = "Astro::Nova::HEquPosn"; | |
| 89 | CODE: | ||
| 90 | 0 | Newx(RETVAL, 1, struct lnh_equ_posn); | |
| 91 | 0 | ln_equ_to_hequ(pos, RETVAL); | |
| 92 | OUTPUT: | ||
| 93 | RETVAL | ||
| 94 | |||
| 95 | struct ln_hrz_posn* | ||
| 96 | ln_hhrz_to_hrz(struct lnh_hrz_posn* hpos); | ||
| 97 | INIT: | ||
| 98 | 0 | const char* CLASS = "Astro::Nova::HrzPosn"; | |
| 99 | CODE: | ||
| 100 | 0 | Newx(RETVAL, 1, struct ln_hrz_posn); | |
| 101 | 0 | ln_hhrz_to_hrz(hpos, RETVAL); | |
| 102 | OUTPUT: | ||
| 103 | RETVAL | ||
| 104 | |||
| 105 | struct lnh_hrz_posn* | ||
| 106 | ln_hrz_to_hhrz(struct ln_hrz_posn* pos); | ||
| 107 | INIT: | ||
| 108 | 0 | const char* CLASS = "Astro::Nova::HHrzPosn"; | |
| 109 | CODE: | ||
| 110 | 0 | Newx(RETVAL, 1, struct lnh_hrz_posn); | |
| 111 | 0 | ln_hrz_to_hhrz(pos, RETVAL); | |
| 112 | OUTPUT: | ||
| 113 | RETVAL | ||
| 114 | |||
| 115 | ### const char * ln_hrz_to_nswe (struct ln_hrz_posn * pos); | ||
| 116 | |||
| 117 | struct ln_lnlat_posn* | ||
| 118 | ln_hlnlat_to_lnlat(struct lnh_lnlat_posn* hpos); | ||
| 119 | INIT: | ||
| 120 | 0 | const char* CLASS = "Astro::Nova::LnLatPosn"; | |
| 121 | CODE: | ||
| 122 | 0 | Newx(RETVAL, 1, struct ln_lnlat_posn); | |
| 123 | 0 | ln_hlnlat_to_lnlat(hpos, RETVAL); | |
| 124 | OUTPUT: | ||
| 125 | RETVAL | ||
| 126 | |||
| 127 | struct lnh_lnlat_posn* | ||
| 128 | ln_lnlat_to_hlnlat(struct ln_lnlat_posn* pos); | ||
| 129 | INIT: | ||
| 130 | 0 | const char* CLASS = "Astro::Nova::HLnLatPosn"; | |
| 131 | CODE: | ||
| 132 | 0 | Newx(RETVAL, 1, struct lnh_lnlat_posn); | |
| 133 | 0 | ln_lnlat_to_hlnlat(pos, RETVAL); | |
| 134 | OUTPUT: | ||
| 135 | RETVAL | ||
| 136 | |||
| 137 | void | ||
| 138 | ln_add_secs_hms (struct ln_hms* hms, double seconds) | ||
| 139 | |||
| 140 | void | ||
| 141 | ln_add_hms(struct ln_hms* source, struct ln_hms* dest) | ||
| 142 | |||
| 143 | double | ||
| 144 | ln_get_light_time(double dist) | ||
| 145 | |||
| 146 |