trans.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * Written by the GRASS Team, 02/16/90, -mh .
  3. */
  4. /******************
  5. * INCLUDES: *
  6. *******************/
  7. #include <stdio.h>
  8. /******************
  9. * DEFINES: *
  10. *******************/
  11. #define TRANS_MATRIX 0
  12. #define TRANS_SHIFT 1
  13. #define IDX_XSHIFT 0
  14. #define IDX_YSHIFT 1
  15. #define IDX_ZSHIFT 2
  16. #define IDX_XSCALE 3
  17. #define IDX_YSCALE 4
  18. #define IDX_ZSCALE 5
  19. #define IDX_ZROT 6
  20. /******************
  21. * GLOBALS: *
  22. *******************/
  23. /**
  24. * The coordinates of the points from the map that is to be converted
  25. * are placed in ax[] and ay[].
  26. * Those cooresponding points in the other coordinate system
  27. * are placed in bx[], by[].
  28. *
  29. * The use[] contains a true if that point is to be used by the transform
  30. * library or a false (0) if it is not to be used.
  31. * The residuals each set of points contributes is placed in residuals[].
  32. *
  33. * Yah, I made them global. So shoot me.
  34. **/
  35. /******************
  36. * STRUCTS: *
  37. *******************/
  38. /* For GRASS data files */
  39. struct file_info
  40. {
  41. FILE *fp;
  42. char *mapset;
  43. char name[GPATH_MAX];
  44. };