[Gpredict-svn] SF.net SVN: gpredict:[725] trunk
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
From: <cs...@us...> - 2010-12-26 16:18:02
|
Revision: 725 http://gpredict.svn.sourceforge.net/gpredict/?rev=725&view=rev Author: csete Date: 2010-12-26 16:17:56 +0000 (Sun, 26 Dec 2010) Log Message: ----------- Removed dead code which was nonsense anyway. Modified Paths: -------------- trunk/ChangeLog trunk/src/gtk-sat-map.c Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2010-12-11 12:22:43 UTC (rev 724) +++ trunk/ChangeLog 2010-12-26 16:17:56 UTC (rev 725) @@ -1,3 +1,8 @@ +2010-12-26 Alexandru Csete <oz9aec at gmail.com> + + * src/gtk-sat-map.c: + Removed dead code in coordinate conversion (it was nonsense anyway). + 2010-12-10 Charles Suprin <hamaa1vs at gmail.com> * data/locations.dat @@ -11,7 +16,7 @@ 2010-11-24 Alexandru Csete <oz9aec at gmail.com> * src/Makefile.am: - Fixed PACKAGE_OCALE_DIR. + Fixed PACKAGE_LOCALE_DIR. 2010-11-23 Charles Suprin <hamaa1vs at gmail.com> Modified: trunk/src/gtk-sat-map.c =================================================================== --- trunk/src/gtk-sat-map.c 2010-12-11 12:22:43 UTC (rev 724) +++ trunk/src/gtk-sat-map.c 2010-12-26 16:17:56 UTC (rev 725) @@ -723,16 +723,12 @@ * \param x The X coordinate on the screen (left to right) * \param y The Y coordinate on the screen (top to bottom) * + * Assumes that -180 <= lon <= 180 and -90 <= lat <= 90 */ static void lonlat_to_xy (GtkSatMap *p, gdouble lon, gdouble lat, gfloat *x, gfloat *y) { - *x = p->x0 + (180.0 - lon) * p->width / 360.0; - if (*x < 0.0) /* west longitude */ - *x *= -1; - else /* east longitude */ - *x = p->x0 + (180.0 + lon) * p->width / 360.0; - + *x = p->x0 + (180.0 + lon) * p->width / 360.0; *y = p->y0 + (90.0 - lat) * p->height / 180.0;; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |