#ifndef HEX_H_ #define HEX_H_ 1 struct hex { int iso; int x, y, z; }; int hexbin2(int horizontal, double width, double x, double y, int *i, int *j); int hexbin(int horizontal, double width, double x, double y, int *i, int *j); int hex_xy(struct hex *h); int hex_iso(struct hex *h); int hex_distance(struct hex *a, struct hex *b); int hex_bearing(struct hex *a, struct hex *b); int hex_at(struct hex *h, int distance, struct hex **list); int hex_within(struct hex *h, int distance, struct hex **list); int hex_dir(struct hex *h, int direction); #endif