Pol  Revision:cb584c9
zone.cpp
Go to the documentation of this file.
1 
7 #include "zone.h"
8 
9 namespace Pol
10 {
11 namespace Core
12 {
13 std::pair<unsigned, unsigned> XyToZone( xcoord x, ycoord y )
14 {
15  return std::make_pair<unsigned, unsigned>( x >> ZONE_SHIFT, y >> ZONE_SHIFT );
16 }
17 } // namespace Core
18 } // namespace Pol
const unsigned ZONE_SHIFT
Definition: zone.h:19
unsigned short ycoord
Definition: poltype.h:20
std::pair< unsigned, unsigned > XyToZone(xcoord x, ycoord y)
Definition: zone.cpp:13
Definition: berror.cpp:12
unsigned short xcoord
Definition: poltype.h:19