コード例 #1
0
        static public CardinalOrdinalDirection GetNext(this CardinalOrdinalDirection item, RotationDirection direction)
        {
            switch (direction)
            {
            case RotationDirection.Clockwise: return(item.GetClockwiseNext());

            case RotationDirection.CounterClockwise: return(item.GetCounterClockwiseNext());
            }

            throw new UnaccountedBranchException("direction", direction);
        }
コード例 #2
0
 static public CardinalOrdinalDirection GetClockwisePrevious(this CardinalOrdinalDirection item)
 {
     return(item.GetCounterClockwiseNext());
 }