Changeset 24027
- Timestamp:
- Apr 30, 2009, 2:28:27 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.astro/coord_systems.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.astro/coord_systems.c
r18122 r24027 123 123 // atan2 returns -pi : +pi 124 124 *x = DEG_RAD * atan2 (sin_x, cos_x) + transform->xo; 125 if ((*x) < 0.0) (*x) += 360; 125 if ((*x) < 0.0) (*x) += 360; 126 if ((*x) > 360.0) (*x) -= 360; 126 127 127 128 // should be in range -pi/2 : +pi/2
Note:
See TracChangeset
for help on using the changeset viewer.
