home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / technical / autopcb / !AutoPCB / h / CoordMap < prev    next >
Encoding:
Text File  |  1991-03-24  |  576 b   |  36 lines

  1. #define NIL 50
  2.  
  3. #define Unused { NIL, NIL }
  4.  
  5. #define Centre {   0,   0 }
  6.  
  7. #define North  {   0,  25 }
  8. #define South  {   0, -25 }
  9. #define East   {  25,   0 }
  10. #define West   { -25,   0 }
  11.  
  12. #define Northeast {  25,  25 }
  13. #define Northwest { -25,  25 }
  14. #define Southeast {  25, -25 }
  15. #define Southwest { -25, -25 }
  16.  
  17. struct coord
  18. {
  19.   int x;
  20.   int y;
  21. };
  22.  
  23. struct mapping
  24. {
  25.   long mask;
  26.   struct coord start;
  27.   struct coord middle;
  28.   struct coord finish;
  29. };
  30.  
  31. extern struct mapping coordline[];
  32. extern struct mapping coordhole[];
  33. extern int size_coordline;
  34. extern int size_coordhole;
  35.  
  36.