uint BuildLpvMask(const in uint north, const in uint east, const in uint south, const in uint west, const in uint up, const in uint down)
{
    return east | (west << 1) | (down << 2) | (up << 3) | (south << 4) | (north << 5);
}
