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); }
static public CardinalOrdinalDirection GetClockwisePrevious(this CardinalOrdinalDirection item) { return(item.GetCounterClockwiseNext()); }