oppositeAxis property

Axis get oppositeAxis

Getter.

Implementation

Axis get oppositeAxis
{
  switch (this)
  {
    case Axis.X:
      return Axis.Y;
    case Axis.Y:
      return Axis.X;
    default:
      throw new IllegalStateException("There is no oppositeAxis for Axis.BOTH.");
  }
}