mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* Regions Pos class refactor * switched memorylayout of regions. y first to be more cache friendly
18 lines
231 B
C++
18 lines
231 B
C++
/** @file
|
|
*
|
|
* @par History
|
|
*/
|
|
|
|
|
|
#include "zone.h"
|
|
|
|
namespace Pol
|
|
{
|
|
namespace Core
|
|
{
|
|
Pos2d XyToZone( const Pos2d& pos )
|
|
{
|
|
return Pos2d( pos.x() >> ZONE_SHIFT, pos.y() >> ZONE_SHIFT );
|
|
}
|
|
} // namespace Core
|
|
} // namespace Pol
|