Method | Description | |
---|---|---|
All ( ) : IEnumerable |
All eight cardinal directions, starting north, in clockwise order.
|
|
Diagonal ( ) : IEnumerable |
All diagonal directions, starting north-west, in clockwise order.
|
|
HorizontalVertical ( ) : IEnumerable |
Four horizonal and vertical directions, starting north, in clockwise order.
|
|
IsDiagonal ( this direction ) : bool |
Checks whether the specified direction is diagonal.
|
|
IsHorizontal ( this direction ) : bool |
Checks whether the specified direction is horizontal.
|
|
IsVertical ( this direction ) : bool |
Checks whether the specified direction is vertical.
|
|
Opposite ( this direction ) : Direction |
Returns the opposite of the passed direction.
|
public static HorizontalVertical ( ) : IEnumerable |
||
return | IEnumerable |
public static IsDiagonal ( this direction ) : bool | ||
direction | this | Direction to check. |
return | bool |
public static IsHorizontal ( this direction ) : bool | ||
direction | this | Direction to check. |
return | bool |
public static IsVertical ( this direction ) : bool | ||
direction | this | Direction to check. |
return | bool |
public static Opposite ( this direction ) : Direction | ||
direction | this | Direction to get the opposite of. |
return | Direction |