Skip to main content

Class VectorExtensions

Extension methods for vectors.

Assembly: Dalamud.dll
View Source
Declaration
public static class VectorExtensions

Methods

WithX(Vector4, float)

View Source
Declaration
public static Vector4 WithX(this Vector4 v, float x)
Returns

System.Numerics.Vector4

Parameters
TypeName
System.Numerics.Vector4v
System.Singlex

WithY(Vector4, float)

View Source
Declaration
public static Vector4 WithY(this Vector4 v, float y)
Returns

System.Numerics.Vector4

Parameters
TypeName
System.Numerics.Vector4v
System.Singley

WithZ(Vector4, float)

View Source
Declaration
public static Vector4 WithZ(this Vector4 v, float z)
Returns

System.Numerics.Vector4

Parameters
TypeName
System.Numerics.Vector4v
System.Singlez

WithW(Vector4, float)

View Source
Declaration
public static Vector4 WithW(this Vector4 v, float w)
Returns

System.Numerics.Vector4

Parameters
TypeName
System.Numerics.Vector4v
System.Singlew

WithX(Vector3, float)

View Source
Declaration
public static Vector3 WithX(this Vector3 v, float x)
Returns

System.Numerics.Vector3

Parameters
TypeName
System.Numerics.Vector3v
System.Singlex

WithY(Vector3, float)

View Source
Declaration
public static Vector3 WithY(this Vector3 v, float y)
Returns

System.Numerics.Vector3

Parameters
TypeName
System.Numerics.Vector3v
System.Singley

WithZ(Vector3, float)

View Source
Declaration
public static Vector3 WithZ(this Vector3 v, float z)
Returns

System.Numerics.Vector3

Parameters
TypeName
System.Numerics.Vector3v
System.Singlez

WithX(Vector2, float)

View Source
Declaration
public static Vector2 WithX(this Vector2 v, float x)
Returns

System.Numerics.Vector2

Parameters
TypeName
System.Numerics.Vector2v
System.Singlex

WithY(Vector2, float)

View Source
Declaration
public static Vector2 WithY(this Vector2 v, float y)
Returns

System.Numerics.Vector2

Parameters
TypeName
System.Numerics.Vector2v
System.Singley

ToByteColor(Vector4)

View Source
Declaration
public static ByteColor ToByteColor(this Vector4 v)
Returns

FFXIVClientStructs.FFXIV.Client.Graphics.ByteColor

Parameters
TypeName
System.Numerics.Vector4v