1
0

coordin.h 452 B

123456789101112131415161718192021
  1. // coordin.h -- structure templates and function prototypes
  2. // structure templates
  3. #ifndef COORDIN_H_
  4. #define COORDIN_H_
  5. struct polar
  6. {
  7. double distance; // distance from origin
  8. double angle; // direction from origin
  9. };
  10. struct rect
  11. {
  12. double x; // horizontal distance from origin
  13. double y; // vertical distance from origin
  14. };
  15. // prototypes
  16. polar rect_to_polar(rect xypos);
  17. void show_polar(polar dapos);
  18. #endif