示例#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));
 }