| MathConversionExtensionsToVector2I Method |
Converts the specified Unity vector to a framework vector.
Namespace: Slash.Unity.Common.MathAssembly: Slash.Unity.Common (in Slash.Unity.Common.dll) Version: 1.0.6018.40182
Syntax public static Vector2I ToVector2I(
this Vector2 vector
)
<ExtensionAttribute>
Public Shared Function ToVector2I (
vector As Vector2
) As Vector2I
public:
[ExtensionAttribute]
static Vector2I ToVector2I(
Vector2 vector
)
[<ExtensionAttribute>]
static member ToVector2I :
vector : Vector2 -> Vector2I
Parameters
- vector
- Type: Vector2
Vector to convert.
Return Value
Type:
Vector2ICorresponding framework vector.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Vector2. 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