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 GetCounterClockwisePrevious(this CardinalOrdinalDirection item) { return(item.GetClockwiseNext()); }