 | DirectionToVector2F 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 Vector2F ToVector2F(
this DirectionType direction
)
<ExtensionAttribute>
Public Shared Function ToVector2F (
direction As DirectionType
) As Vector2F
public:
[ExtensionAttribute]
static Vector2F ToVector2F(
DirectionType direction
)
[<ExtensionAttribute>]
static member ToVector2F :
direction : DirectionType -> Vector2F
Parameters
- direction
- Type: Slash.Math.UtilsDirectionType
Direction to convert.
Return Value
Type:
Vector2FVector pointing in the specified direction.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
DirectionType. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also