Table of Contents

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

x float
y float
z float
w float

Fields

W

public float W

Field Value

float

X

public float X

Field Value

float

Y

public float Y

Field Value

float

Z

public float Z

Field Value

float

Properties

A

public float A { get; }

Property Value

float

B

public float B { get; }

Property Value

float

Black

public static Vector4 Black { get; }

Property Value

Vector4

Blue

public static Vector4 Blue { get; }

Property Value

Vector4

G

public float G { get; }

Property Value

float

Green

public static Vector4 Green { get; }

Property Value

Vector4

LightBlue

public static Vector4 LightBlue { get; }

Property Value

Vector4

LightGreen

public static Vector4 LightGreen { get; }

Property Value

Vector4

LightRed

public static Vector4 LightRed { get; }

Property Value

Vector4

One

public static Vector4 One { get; }

Property Value

Vector4

R

public float R { get; }

Property Value

float

Red

public static Vector4 Red { get; }

Property Value

Vector4

White

public static Vector4 White { get; }

Property Value

Vector4

Zero

public static Vector4 Zero { get; }

Property Value

Vector4

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

rbg Vector4
h float

Hue

s float

Saturation

v float

Value

HSVLerp(Vector4, Vector4, float)

Lerp between two colours in HSV space.

public static Vector4 HSVLerp(Vector4 a, Vector4 b, float t)

Parameters

a Vector4
b Vector4
t float

Returns

Vector4

HSVToColor(float, float, float, float)

Converts HSV to a color.

public static Vector4 HSVToColor(float h, float s, float v, float a = 1)

Parameters

h float

Hue

s float

Saturation

v float

Value

a float

Returns

Vector4

Lerp(Vector4, Vector4, float)

Returns a linear interpolation between two vectors.

public static Vector4 Lerp(Vector4 a, Vector4 b, float t)

Parameters

a Vector4
b Vector4
t float

Returns

Vector4

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

a Vector4
b Vector4
tolerance float

Returns

bool

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

a Vector4
b Vector4
value Vector4

Returns

Vector4

Operators

operator +(Vector4, Vector4)

public static Vector4 operator +(Vector4 a, Vector4 b)

Parameters

a Vector4
b Vector4

Returns

Vector4

operator /(Vector4, Vector4)

public static Vector4 operator /(Vector4 a, Vector4 b)

Parameters

a Vector4
b Vector4

Returns

Vector4

operator /(Vector4, float)

public static Vector4 operator /(Vector4 a, float b)

Parameters

a Vector4
b float

Returns

Vector4

operator ==(Vector4, Vector4)

public static bool operator ==(Vector4 a, Vector4 b)

Parameters

a Vector4
b Vector4

Returns

bool

operator !=(Vector4, Vector4)

public static bool operator !=(Vector4 a, Vector4 b)

Parameters

a Vector4
b Vector4

Returns

bool

operator *(Vector4, Vector4)

public static Vector4 operator *(Vector4 a, Vector4 b)

Parameters

a Vector4
b Vector4

Returns

Vector4

operator *(Vector4, float)

public static Vector4 operator *(Vector4 a, float b)

Parameters

a Vector4
b float

Returns

Vector4

operator -(Vector4, Vector4)

public static Vector4 operator -(Vector4 a, Vector4 b)

Parameters

a Vector4
b Vector4

Returns

Vector4