src/AnvilPacker/Level/Physics/Direction.cs
/// <summary> Returns the coordinate axis for the specified direction </summary>
Returns the coordinate axis for the specified direction
Returns the coordinate axis for the specified direction
public static Axis Axis(this Direction dir)
        {
            int index = BitOperations.TrailingZeroCount((int)dir);
            return Axes[index];
        }
public static Axis Axis ( this Direction dir ) { int index = BitOperations . TrailingZeroCount ( ( int ) dir ) ; return Axes [ index ] ; }
Returns the coordinate axis for the specified direction
Returns the coordinate axis for the specified direction
Direction
this