src/AnvilPacker/Level/Physics/Direction.cs
/// <summary> 
/// Returns the opposite sides of the specified mask. <br/>
/// <c>XNeg &lt;-> XPos</c> <br/>
/// <c>YNeg &lt;-> YPos</c> <br/>
/// <c>ZNeg &lt;-> ZPos</c> <br/>
/// </summary>
Returns the opposite sides of the specified mask.
Returns the opposite sides of the specified mask .
public static Direction Opposite(this Direction mask)
        {
            int m = (int)mask;
            return (Direction)(
                (m & 0b101010) >> 1 |
                (m & 0b010101) << 1
            );
        }
public static Direction Opposite ( this Direction mask ) { int m = ( int ) mask ; return ( Direction ) ( ( m & 0b101010 ) >> 1 | ( m & 0b010101 ) << 1 ) ; }
Returns the opposite sides of the specified mask.
Returns the opposite sides of the specified mask .
Direction
this