Struct Vector4
- Namespace
- AO
- Assembly
- CoreAssembly.dll
public struct Vector4
- Inherited Members
- Extension Methods
Constructors
Vector4(float)
public Vector4(float all)
Parameters
all
float
Vector4(float, float, float, float)
public Vector4(float x, float y, float z, float w)
Parameters
Fields
W
public float W
Field Value
X
public float X
Field Value
Y
public float Y
Field Value
Z
public float Z
Field Value
Properties
A
public float A { get; }
Property Value
B
public float B { get; }
Property Value
Black
public static Vector4 Black { get; }
Property Value
Blue
public static Vector4 Blue { get; }
Property Value
G
public float G { get; }
Property Value
Green
public static Vector4 Green { get; }
Property Value
LightBlue
public static Vector4 LightBlue { get; }
Property Value
LightGreen
public static Vector4 LightGreen { get; }
Property Value
LightRed
public static Vector4 LightRed { get; }
Property Value
One
public static Vector4 One { get; }
Property Value
R
public float R { get; }
Property Value
Red
public static Vector4 Red { get; }
Property Value
White
public static Vector4 White { get; }
Property Value
Zero
public static Vector4 Zero { get; }
Property Value
Methods
ColorToHSV(Vector4, out float, out float, out float)
Converts a color to HSV.
public static void ColorToHSV(Vector4 rbg, out float h, out float s, out float v)
Parameters
HSVLerp(Vector4, Vector4, float)
Lerp between two colours in HSV space.
public static Vector4 HSVLerp(Vector4 a, Vector4 b, float t)
Parameters
Returns
HSVToColor(float, float, float, float)
Converts HSV to a color.
public static Vector4 HSVToColor(float h, float s, float v, float a = 1)
Parameters
Returns
Lerp(Vector4, Vector4, float)
Returns a linear interpolation between two vectors.
public static Vector4 Lerp(Vector4 a, Vector4 b, float t)
Parameters
Returns
RoughlyEqual(Vector4, Vector4, float)
Returns true if the two vectors are roughly equal within the given tolerance.
public static bool RoughlyEqual(Vector4 a, Vector4 b, float tolerance = 0.0001)
Parameters
Returns
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Unlerp(Vector4, Vector4, Vector4)
Returns the percentage that 'value' is between 'a' and 'b'.
public static Vector4 Unlerp(Vector4 a, Vector4 b, Vector4 value)
Parameters
Returns
Operators
operator +(Vector4, Vector4)
public static Vector4 operator +(Vector4 a, Vector4 b)
Parameters
Returns
operator /(Vector4, Vector4)
public static Vector4 operator /(Vector4 a, Vector4 b)
Parameters
Returns
operator /(Vector4, float)
public static Vector4 operator /(Vector4 a, float b)
Parameters
Returns
operator ==(Vector4, Vector4)
public static bool operator ==(Vector4 a, Vector4 b)
Parameters
Returns
operator !=(Vector4, Vector4)
public static bool operator !=(Vector4 a, Vector4 b)
Parameters
Returns
operator *(Vector4, Vector4)
public static Vector4 operator *(Vector4 a, Vector4 b)
Parameters
Returns
operator *(Vector4, float)
public static Vector4 operator *(Vector4 a, float b)
Parameters
Returns
operator -(Vector4, Vector4)
public static Vector4 operator -(Vector4 a, Vector4 b)