ttrts/maths/mathtypes.h

23 lines
464 B
C
Raw Normal View History

#ifndef _BASETYPES_H_
#define _BASETYPES_H_
2014-12-16 13:13:00 +00:00
#include <limits> // std::numeric_limits
2014-12-16 13:12:59 +00:00
// Coordinate types
typedef short coord_t;
typedef unsigned short ucoord_t;
2014-12-16 13:13:00 +00:00
// Invalid values
static const coord_t coord_invalid = std::numeric_limits<coord_t>::max();
static const ucoord_t ucoord_invalid = std::numeric_limits<ucoord_t>::max();
2014-12-16 13:12:59 +00:00
// Direction representation
enum dir_t : char
{
N = 'N',
S = 'S',
E = 'E',
W = 'W',
};
#endif //_BASETYPES_H_