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
Type | Name |
---|---|
System.Numerics.Vector4 | v |
System.Single | x |
WithY(Vector4, float)
View Source
Declaration
public static Vector4 WithY(this Vector4 v, float y)
Returns
System.Numerics.Vector4
Parameters
Type | Name |
---|---|
System.Numerics.Vector4 | v |
System.Single | y |
WithZ(Vector4, float)
View Source
Declaration
public static Vector4 WithZ(this Vector4 v, float z)
Returns
System.Numerics.Vector4
Parameters
Type | Name |
---|---|
System.Numerics.Vector4 | v |
System.Single | z |
WithW(Vector4, float)
View Source
Declaration
public static Vector4 WithW(this Vector4 v, float w)
Returns
System.Numerics.Vector4
Parameters
Type | Name |
---|---|
System.Numerics.Vector4 | v |
System.Single | w |
WithX(Vector3, float)
View Source
Declaration
public static Vector3 WithX(this Vector3 v, float x)
Returns
System.Numerics.Vector3
Parameters
Type | Name |
---|---|
System.Numerics.Vector3 | v |
System.Single | x |
WithY(Vector3, float)
View Source
Declaration
public static Vector3 WithY(this Vector3 v, float y)
Returns
System.Numerics.Vector3
Parameters
Type | Name |
---|---|
System.Numerics.Vector3 | v |
System.Single | y |
WithZ(Vector3, float)
View Source
Declaration
public static Vector3 WithZ(this Vector3 v, float z)
Returns
System.Numerics.Vector3
Parameters
Type | Name |
---|---|
System.Numerics.Vector3 | v |
System.Single | z |
WithX(Vector2, float)
View Source
Declaration
public static Vector2 WithX(this Vector2 v, float x)
Returns
System.Numerics.Vector2
Parameters
Type | Name |
---|---|
System.Numerics.Vector2 | v |
System.Single | x |
WithY(Vector2, float)
View Source
Declaration
public static Vector2 WithY(this Vector2 v, float y)
Returns
System.Numerics.Vector2
Parameters
Type | Name |
---|---|
System.Numerics.Vector2 | v |
System.Single | y |
ToByteColor(Vector4)
View Source
Declaration
public static ByteColor ToByteColor(this Vector4 v)
Returns
FFXIVClientStructs.FFXIV.Client.Graphics.ByteColor
Parameters
Type | Name |
---|---|
System.Numerics.Vector4 | v |