 | DirectionToVector2I Method |
Converts the specified direction into a vector.
Namespace: Slash.Math.UtilsAssembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntaxpublic static Vector2I ToVector2I(
DirectionType direction
)
Public Shared Function ToVector2I (
direction As DirectionType
) As Vector2I
public:
static Vector2I ToVector2I(
DirectionType direction
)
static member ToVector2I :
direction : DirectionType -> Vector2I
Parameters
- direction
- Type: Slash.Math.UtilsDirectionType
Direction to convert.
Return Value
Type:
Vector2IVector pointing in the specified direction.
See Also