Class VectorExtensions
- Namespace
- RichHudFramework
- Assembly
- RichHudClient.dll
public static class VectorExtensions
- Inheritance
-
VectorExtensions
Methods
GetBbColor(Color)
Converts a color to its normalized linear RGB equivalent. Assumes additive blending with premultiplied alpha.
public static Vector4 GetBbColor(this Color color)
Parameters
colorColor
Returns
GetChannel(Color, int)
Retrieves the channel of a given Color by its index. R = 0, G = 1, B = 2, A = 3.
public static byte GetChannel(this Color color, int channel)
Parameters
Returns
SetAlphaPct(Color, float)
Calculates the alpha of the color based on a float value between 0 and 1 and returns the new color.
public static Color SetAlphaPct(this Color color, float alphaPercent)
Parameters
Returns
SetChannel(Color, int, byte)
Sets the channel of a given Color by its index to the given value. R = 0, G = 1, B = 2, A = 3.
public static Color SetChannel(this Color color, int channel, byte value)
Parameters
Returns
ToDouble(Vector2)
public static Vector2D ToDouble(this Vector2 vec)
Parameters
vecVector2
Returns
ToSingle(Vector2D)
public static Vector2 ToSingle(this Vector2D vec)
Parameters
vecVector2D