XS/HyperbolicMotion.xs

filter: Statementstmt 0.0% 0 / 39 Branchbran 0.0% 0 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 49 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« XS/Earth.xs ↑ Summary XS/JulianDay.xs »
1  
2 MODULE = Astro::Nova PACKAGE = Astro::Nova PREFIX=ln_
3  
4 double
5 ln_solve_hyp_barker(double Q1, double G, double t)
6  
7 double
8 ln_get_hyp_true_anomaly(double q, double e, double t)
9  
10 double
11 ln_get_hyp_radius_vector (double q, double e, double t)
12  
13  
14 struct ln_rect_posn*
15 ln_get_hyp_geo_rect_posn(struct ln_hyp_orbit* orbit, double JD)
16 INIT:
17 0 const char* CLASS = "Astro::Nova::RectPosn";
18 CODE:
19 0 Newx(RETVAL, 1, struct ln_rect_posn);
20 0 ln_get_hyp_geo_rect_posn(orbit, JD, RETVAL);
21 OUTPUT:
22 RETVAL
23  
24 struct ln_rect_posn*
25 ln_get_hyp_helio_rect_posn(struct ln_hyp_orbit* orbit, double JD)
26 INIT:
27 0 const char* CLASS = "Astro::Nova::RectPosn";
28 CODE:
29 0 Newx(RETVAL, 1, struct ln_rect_posn);
30 0 ln_get_hyp_helio_rect_posn(orbit, JD, RETVAL);
31 OUTPUT:
32 RETVAL
33  
34  
35 struct ln_equ_posn*
36 ln_get_hyp_body_equ_coords(double JD, struct ln_hyp_orbit* orbit)
37 INIT:
38 0 const char* CLASS = "Astro::Nova::EquPosn";
39 CODE:
40 0 Newx(RETVAL, 1, struct ln_equ_posn);
41 0 ln_get_hyp_body_equ_coords(JD, orbit, RETVAL);
42 OUTPUT:
43 RETVAL
44  
45 double
46 ln_get_hyp_body_earth_dist(double JD, struct ln_hyp_orbit* orbit)
47  
48 double
49 ln_get_hyp_body_solar_dist(double JD, struct ln_hyp_orbit* orbit)
50  
51 double
52 ln_get_hyp_body_phase_angle(double JD, struct ln_hyp_orbit* orbit)
53  
54 double
55 ln_get_hyp_body_elong(double JD, struct ln_hyp_orbit* orbit)
56  
57 void
58 ln_get_hyp_body_rst(double JD, struct ln_lnlat_posn* observer, struct ln_hyp_orbit* orbit)
59 INIT:
60 struct ln_rst_time* rst;
61 PPCODE:
62 0 Newx(rst, 1, struct ln_rst_time);
63 0 int res = ln_get_hyp_body_rst(JD, observer, orbit, rst);
64 0 ▶ EXTEND(SP, 2);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(SP, 2); 0 0 0
65 0 PUSHs(sv_2mortal(newSViv(res)));
66 0 PUSHs(sv_newmortal());
67 0 sv_setref_pv(ST(1), "Astro::Nova::RstTime", (void*)rst);
68  
69 void
70 ln_get_hyp_body_rst_horizon(double JD, struct ln_lnlat_posn* observer, struct ln_hyp_orbit* orbit, double horizon)
71 INIT:
72 struct ln_rst_time* rst;
73 PPCODE:
74 0 Newx(rst, 1, struct ln_rst_time);
75 0 int res = ln_get_hyp_body_rst_horizon(JD, observer, orbit, horizon, rst);
76 0 ▶ EXTEND(SP, 2);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(SP, 2); 0 0 0
77 0 PUSHs(sv_2mortal(newSViv(res)));
78 0 PUSHs(sv_newmortal());
79 0 sv_setref_pv(ST(1), "Astro::Nova::RstTime", (void*)rst);
80  
81 void
82 ln_get_hyp_body_next_rst(double JD, struct ln_lnlat_posn* observer, struct ln_hyp_orbit* orbit)
83 INIT:
84 struct ln_rst_time* rst;
85 PPCODE:
86 0 Newx(rst, 1, struct ln_rst_time);
87 0 int res = ln_get_hyp_body_next_rst(JD, observer, orbit, rst);
88 0 ▶ EXTEND(SP, 2);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(SP, 2); 0 0 0
89 0 PUSHs(sv_2mortal(newSViv(res)));
90 0 PUSHs(sv_newmortal());
91 0 sv_setref_pv(ST(1), "Astro::Nova::RstTime", (void*)rst);
92  
93 void
94 ln_get_hyp_body_next_rst_horizon(double JD, struct ln_lnlat_posn* observer, struct ln_hyp_orbit* orbit, double horizon)
95 INIT:
96 struct ln_rst_time* rst;
97 PPCODE:
98 0 Newx(rst, 1, struct ln_rst_time);
99 0 int res = ln_get_hyp_body_next_rst_horizon(JD, observer, orbit, horizon, rst);
100 0 ▶ EXTEND(SP, 2);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(SP, 2); 0 0 0
101 0 PUSHs(sv_2mortal(newSViv(res)));
102 0 PUSHs(sv_newmortal());
103 0 sv_setref_pv(ST(1), "Astro::Nova::RstTime", (void*)rst);
104  
105 void
106 ln_get_hyp_body_next_rst_horizon_future(double JD, struct ln_lnlat_posn* observer, struct ln_hyp_orbit* orbit, double horizon, int day_limit)
107 INIT:
108 struct ln_rst_time* rst;
109 PPCODE:
110 0 Newx(rst, 1, struct ln_rst_time);
111 0 int res = ln_get_hyp_body_next_rst_horizon_future(JD, observer, orbit, horizon, day_limit, rst);
112 0 ▶ EXTEND(SP, 2);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(SP, 2); 0 0 0
113 0 PUSHs(sv_2mortal(newSViv(res)));
114 0 PUSHs(sv_newmortal());
115 0 sv_setref_pv(ST(1), "Astro::Nova::RstTime", (void*)rst);
116  
« XS/Earth.xs ↑ Summary XS/JulianDay.xs »