Gets the vertical or horizontal Axis of this direction.
Axis get axis => this == AxisDirection.up || this == AxisDirection.down ? Axis.vertical : Axis.horizontal;