Lines Matching refs:lon
133 static void astro_sunpos(double d, double *lon, double *r) in astro_sunpos() argument
154 *lon = v + w; /* True solar longitude */ in astro_sunpos()
155 if (*lon >= 360.0) { in astro_sunpos()
156 *lon -= 360.0; /* Make it 0..360 degrees */ in astro_sunpos()
162 double lon, obl_ecl, x, y, z; in astro_sun_RA_dec() local
165 astro_sunpos(d, &lon, r); in astro_sun_RA_dec()
168 x = *r * cosd(lon); in astro_sun_RA_dec()
169 y = *r * sind(lon); in astro_sun_RA_dec()
212 int timelib_astro_rise_set_altitude(timelib_time *t_loc, double lon, double lat, double altit, int … in timelib_astro_rise_set_altitude() argument
244 d = timelib_ts_to_j2000(timestamp) + 2 - lon/360.0; in timelib_astro_rise_set_altitude()
247 sidtime = astro_revolution(astro_GMST0(d) + 180.0 + lon); in timelib_astro_rise_set_altitude()