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