Click or drag to resize
DirectionToVector2F Method
Converts the specified direction into a vector.

Namespace: Slash.Math.Utils
Assembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntax
public static Vector2F ToVector2F(
	this DirectionType direction
)

Parameters

direction
Type: Slash.Math.UtilsDirectionType
Direction to convert.

Return Value

Type: Vector2F
Vector 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