home *** CD-ROM | disk | FTP | other *** search
- /*
- ** COORDMAP
- **
- ** Assuming the grid is based on the unit of a square 50 x 50 thousands
- ** of an inch (0.05"). The centre of each square would be (0,0), and the
- ** edges would be 25 units out.
- */
-
- #include "cell.h"
- #include "coordmap.h"
-
- struct mapping coordhole[] =
- {
- { HOLE_NORTH, Centre, North, Unused },
- { HOLE_EAST, Centre, East, Unused },
- { HOLE_WEST, Centre, West, Unused },
- { HOLE_SOUTH, Centre, South, Unused },
- { HOLE_NORTHEAST, Centre, Northeast, Unused },
- { HOLE_NORTHWEST, Centre, Northwest, Unused },
- { HOLE_SOUTHEAST, Centre, Southeast, Unused },
- { HOLE_SOUTHWEST, Centre, Southwest, Unused }
- };
-
- struct mapping coordline[] =
- {
- { LINE_HORIZONTAL, West, East, Unused },
- { LINE_VERTICAL, South, North, Unused },
-
- { CORNER_NORTHEAST, East, North, Unused },
- { CORNER_SOUTHEAST, South, East, Unused },
- { CORNER_NORTHWEST, West, North, Unused },
- { CORNER_SOUTHWEST, South, West, Unused },
-
- { DIAG_NEtoSW, Northeast, Southwest, Unused },
- { DIAG_SEtoNW, Southeast, Northwest, Unused },
-
- { BENT_NtoSE, North, Centre, Southeast },
- { BENT_NtoSW, North, Centre, Southwest },
- { BENT_EtoSW, East, Centre, Southwest },
- { BENT_EtoNW, East, Centre, Northwest },
- { BENT_StoNW, South, Centre, Northwest },
- { BENT_StoNE, South, Centre, Northeast },
- { BENT_WtoNE, West, Centre, Northeast },
- { BENT_WtoSE, West, Centre, Southeast },
-
- { ANGLE_NEtoSE, Northeast, Centre, Southeast },
- { ANGLE_SEtoSW, Southeast, Centre, Southwest },
- { ANGLE_SWtoNW, Southwest, Centre, Northwest },
- { ANGLE_NWtoNE, Northwest, Centre, Northeast },
-
- { SHARP_NtoNE, North, Centre, Northeast },
- { SHARP_EtoNE, East, Centre, Northeast },
- { SHARP_EtoSE, East, Centre, Southeast },
- { SHARP_StoSE, South, Centre, Southeast },
- { SHARP_StoSW, South, Centre, Southwest },
- { SHARP_WtoSW, West, Centre, Southwest },
- { SHARP_WtoNW, West, Centre, Northwest },
- { SHARP_NtoNW, North, Centre, Northwest }
- };
-
- int size_coordhole = sizeof(coordhole) / sizeof(struct mapping);
- int size_coordline = sizeof(coordline) / sizeof(struct mapping);
-