Skip to main content

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
TypeNameDescription
SharpDX.Vector2vecVector 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
TypeNameDescription
SharpDX.Vector3vecVector 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
TypeNameDescription
SharpDX.Vector4vecVector 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
TypeNameDescription
System.Numerics.Vector2vecVector 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
TypeNameDescription
System.Numerics.Vector3vecVector 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
TypeNameDescription
System.Numerics.Vector4vecVector to convert.