Vector4

A four-dimensional vector.

# Properties

[{"index":"float w","0":"The w-axis value of the Vector."}]

[{"index":"float x","0":"The x-axis value of the vector."}]

[{"index":"float y","0":"The y-axis value of the vector."}]

[{"index":"float z","0":"The z-axis value of the vector."}]

[{"index":"Vector4 negativeInfinity (Static) (ReadOnly) (HideFromInspector)","0":"You can simply use Vector4(-inf, -inf, -inf, -inf)."}]

[{"index":"Vector4 one (Static) (ReadOnly) (HideFromInspector)","0":"You can simply use Vector4(1, 1, 1, 1)."}]

[{"index":"Vector4 positiveInfinity (Static) (ReadOnly) (HideFromInspector)","0":"You can simply use Vector4(inf, inf, inf, inf)."}]

[{"index":"Vector4 zero (Static) (ReadOnly) (HideFromInspector)","0":"You can simply use Vector4(0, 0, 0, 0)."}]

# Constructors

[{"index":"Vector4(float x, float y, float z, float w)","0":"Initializes Vector4 to the specified value."}]

# Methods

[{"index":"Vector4 Clone()","0":"Generates a copy."}]

[{"index":"float Distance(Vector4 b)","0":"Finds the distance between two vectors."}]

[{"index":"float Dot(Vector4 b)","0":"Finds the inner product of two vectors."}]

[{"index":"Vector4 Lerp(Vector4 b, float t)","0":"Creates a Vector4 entity that linearly interpolates two Vectors with t and then returns it. The value of t is between 0 to 1."}]

[{"index":"Vector4 LerpUnclamped(Vector4 b, float t)","0":"Creates a Vector4 entity that linearly interpolates two Vectors with t and then returns it."}]

[{"index":"float Magnitude()","0":"Finds the size of a vector."}]

[{"index":"Vector4 Normalize()","0":"Finds the Vector that has the same direction and a size of 1."}]

[{"index":"Vector4 Project(Vector4 b)","0":"Finds the Vector projected by Vector into b."}]

[{"index":"float SqrMagnitude()","0":"Finds the square of the size of a Vector."}]

[{"index":"float Distance(Vector4 a, Vector4 b) (Static)","0":"Finds the distance between two vectors."}]

[{"index":"float Dot(Vector4 a, Vector4 b) (Static)","0":"Finds the inner product of two vectors."}]

[{"index":"Vector4 Lerp(Vector4 a, Vector4 b, float t) (Static)","0":"Creates a Vector4 entity that linearly interpolates two Vectors with t and then returns it. The value of t is between 0 to 1."}]

[{"index":"Vector4 LerpUnclamped(Vector4 a, Vector4 b, float t) (Static)","0":"Creates a Vector4 entity that linearly interpolates two Vectors with t and then returns it."}]

[{"index":"float Magnitude(Vector4 a) (Static)","0":"Finds the size of a vector."}]

[{"index":"Vector4 Normalize(Vector4 a) (Static)","0":"Finds the Vector that has the same direction and a size of 1."}]

[{"index":"Vector4 Project(Vector4 a, Vector4 b) (Static)","0":"Creates the Vector4 entity, which projects a with b, and returns it."}]

[{"index":"float SqrMagnitude(Vector4 a) (Static)","0":"Finds the square of the size of a Vector."}]

# Operators

[{"index":"Vector4 Addition(Vector4 left, Vector4 right) (Static)","0":"Returns a new Vector4 entity obtained by adding two vectors."}]

[{"index":"Vector4 Division(Vector4 left, float right) (Static)","0":"Returns a new Vector4 entity by dividing the vector by a real number."}]

[{"index":"boolean Equality(Vector4 left, Vector4 right) (Static)","0":"Checks if the two vectors are the same. Returns true if they're the same. Otherwise, returns false."}]

[{"index":"boolean Inequality(Vector4 left, Vector4 right) (Static)","0":"Checks if the two values are different. Returns false if they're the same. Otherwise, true."}]

[{"index":"Vector4 Multiply(float left, Vector4 right) (Static)","0":"Returns a new Vector4 entity by multiplying the vector by a real number."}]

[{"index":"Vector4 Multiply(Vector4 left, float right) (Static)","0":"Returns a new Vector4 entity by multiplying the vector by a real number."}]

[{"index":"Vector4 Subtraction(Vector4 left, Vector4 right) (Static)","0":"Returns a new Vector4 entity obtained by subtracting two vectors."}]

[{"index":"Vector4 UnaryNegation(Vector4 value) (Static)","0":"Returns a new Vector4 entity that represents a reversed vector."}]