예제 #1
0
 public static CompassDirection GetLeft(this CompassDirection direction)
 {
     return(direction.Rotate(7));
 }
예제 #2
0
 public static CompassDirection GetRight(this CompassDirection direction)
 {
     return(direction.Rotate(1));
 }
예제 #3
0
 public static CompassDirection GetOpposite(this CompassDirection direction)
 {
     return(direction.Rotate(4));
 }