Class VectorExtensions
Extension methods for System.Numerics.VectorN and SharpDX.VectorN.
Assembly: Dalamud.dll
View Source
Declaration
public static class VectorExtensions
Methods
ToSystem(Vector2)
Converts a SharpDX vector to System.Numerics.
View Source
Declaration
public static Vector2 ToSystem(this Vector2 vec)
Returns
System.Numerics.Vector2
: A converted vector.
Parameters
Type | Name | Description |
---|---|---|
SharpDX.Vector2 | vec | Vector to convert. |
ToSystem(Vector3)
Converts a SharpDX vector to System.Numerics.
View Source
Declaration
public static Vector3 ToSystem(this Vector3 vec)
Returns
System.Numerics.Vector3
: A converted vector.
Parameters
Type | Name | Description |
---|---|---|
SharpDX.Vector3 | vec | Vector to convert. |
ToSystem(Vector4)
Converts a SharpDX vector to System.Numerics.
View Source
Declaration
public static Vector4 ToSystem(this Vector4 vec)
Returns
System.Numerics.Vector4
: A converted vector.
Parameters
Type | Name | Description |
---|---|---|
SharpDX.Vector4 | vec | Vector to convert. |
ToSharpDX(Vector2)
Converts a System.Numerics vector to SharpDX.
View Source
Declaration
public static Vector2 ToSharpDX(this Vector2 vec)
Returns
SharpDX.Vector2
: A converted vector.
Parameters
Type | Name | Description |
---|---|---|
System.Numerics.Vector2 | vec | Vector to convert. |
ToSharpDX(Vector3)
Converts a System.Numerics vector to SharpDX.
View Source
Declaration
public static Vector3 ToSharpDX(this Vector3 vec)
Returns
SharpDX.Vector3
: A converted vector.
Parameters
Type | Name | Description |
---|---|---|
System.Numerics.Vector3 | vec | Vector to convert. |
ToSharpDX(Vector4)
Converts a System.Numerics vector to SharpDX.
View Source
Declaration
public static Vector4 ToSharpDX(this Vector4 vec)
Returns
SharpDX.Vector4
: A converted vector.
Parameters
Type | Name | Description |
---|---|---|
System.Numerics.Vector4 | vec | Vector to convert. |