| MathConversionExtensionsToVector2F Method (Vector3) |
Note: This API is now obsolete.
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 [ObsoleteAttribute("Deprecated to make conversion clearer. Use ToVector2FXY instead.")]
public static Vector2F ToVector2F(
this Vector3 vector
)
<ExtensionAttribute>
<ObsoleteAttribute("Deprecated to make conversion clearer. Use ToVector2FXY instead.")>
Public Shared Function ToVector2F (
vector As Vector3
) As Vector2F
public:
[ExtensionAttribute]
[ObsoleteAttribute(L"Deprecated to make conversion clearer. Use ToVector2FXY instead.")]
static Vector2F ToVector2F(
Vector3 vector
)
[<ExtensionAttribute>]
[<ObsoleteAttribute("Deprecated to make conversion clearer. Use ToVector2FXY instead.")>]
static member ToVector2F :
vector : Vector3 -> Vector2F
Parameters
- vector
- Type: Vector3
Vector to convert.
Return Value
Type:
Vector2FCorresponding framework vector.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Vector3. 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