Property | Type | Description | |
---|---|---|---|
CardinalDirections | Direction[] | ||
CardinalUpDownDirections | Direction[] | ||
IntercardinalDirections | Direction[] | ||
PlanarDirections | Direction[] | ||
PlanarUpDownDirections | Direction[] |
Method | Description | |
---|---|---|
ComponentsToDirection ( int x, int y ) : Direction | ||
ComponentsToDirection ( int x, int y, int z ) : Direction | ||
Contains ( this dirset, Direction dir ) : bool | ||
ContainsDown ( this dir ) : bool | ||
ContainsUp ( this dir ) : bool | ||
DirectionToComponents ( this dir, int &x, int &y ) : void | ||
DirectionToComponents ( this dir, int &x, int &y, int &z ) : void | ||
IsCardinal ( this dir ) : bool | ||
IsCardinalUpDown ( this dir ) : bool | ||
IsIntercardinal ( this dir ) : bool | ||
IsPlanar ( this dir ) : bool | ||
IsPlanarUpDown ( this dir ) : bool | ||
IsValid ( this dir ) : bool | ||
Reverse ( this dir ) : Direction | ||
Reverse ( this ds ) : DirectionSet | ||
ToDirectionOrdinal ( this dir ) : DirectionOrdinal | ||
ToDirectionSet ( this dir ) : DirectionSet | ||
ToDirections ( this dirset ) : IEnumerable |
||
ToIntVector2 ( this dir ) : IntVector2 | ||
ToIntVector3 ( this dir ) : IntVector3 | ||
ToPlanarDirection ( this dir ) : Direction | ||
ToSurroundingPoints ( this dirset, IntVector2 p ) : IEnumerable |
||
ToSurroundingPoints ( this dirset, IntVector3 p ) : IEnumerable |
||
ToVectors ( this dirset ) : IEnumerable |
Method | Description | |
---|---|---|
DirectionExtensions ( ) : System |
public static ComponentsToDirection ( int x, int y ) : Direction | ||
x | int | |
y | int | |
return | Direction |
public static ComponentsToDirection ( int x, int y, int z ) : Direction | ||
x | int | |
y | int | |
z | int | |
return | Direction |
public static Contains ( this dirset, Direction dir ) : bool | ||
dirset | this | |
dir | Direction | |
return | bool |
public static ContainsDown ( this dir ) : bool | ||
dir | this | |
return | bool |
public static DirectionToComponents ( this dir, int &x, int &y ) : void | ||
dir | this | |
x | int | |
y | int | |
return | void |
public static DirectionToComponents ( this dir, int &x, int &y, int &z ) : void | ||
dir | this | |
x | int | |
y | int | |
z | int | |
return | void |
public static IsCardinalUpDown ( this dir ) : bool | ||
dir | this | |
return | bool |
public static IsIntercardinal ( this dir ) : bool | ||
dir | this | |
return | bool |
public static IsPlanarUpDown ( this dir ) : bool | ||
dir | this | |
return | bool |
public static Reverse ( this dir ) : Direction | ||
dir | this | |
return | Direction |
public static Reverse ( this ds ) : DirectionSet | ||
ds | this | |
return | DirectionSet |
public static ToDirectionOrdinal ( this dir ) : DirectionOrdinal | ||
dir | this | |
return | DirectionOrdinal |
public static ToDirectionSet ( this dir ) : DirectionSet | ||
dir | this | |
return | DirectionSet |
public static ToDirections ( this dirset ) : IEnumerable |
||
dirset | this | |
return | IEnumerable |
public static ToIntVector2 ( this dir ) : IntVector2 | ||
dir | this | |
return | IntVector2 |
public static ToIntVector3 ( this dir ) : IntVector3 | ||
dir | this | |
return | IntVector3 |
public static ToPlanarDirection ( this dir ) : Direction | ||
dir | this | |
return | Direction |
public static ToSurroundingPoints ( this dirset, IntVector2 p ) : IEnumerable |
||
dirset | this | |
p | IntVector2 | |
return | IEnumerable |
public static ToSurroundingPoints ( this dirset, IntVector3 p ) : IEnumerable |
||
dirset | this | |
p | IntVector3 | |
return | IEnumerable |
public static ToVectors ( this dirset ) : IEnumerable |
||
dirset | this | |
return | IEnumerable |
public static Direction[] CardinalDirections | ||
return | Direction[] |
public static Direction[] CardinalUpDownDirections | ||
return | Direction[] |
public static Direction[] IntercardinalDirections | ||
return | Direction[] |
public static Direction[] PlanarDirections | ||
return | Direction[] |