Struct Vector4

Vector4 structure

A vector with four components.

public struct Vector4 : IComparable<Vector4>

Constructors

NameDescription
Vector4(FVector4)Initializes a new instance of the Vector4 struct.
Vector4(Vector3)Initializes a new instance of the Vector4 struct.
Vector4(Vector3, double)Initializes a new instance of the Vector4 struct.
Vector4(double, double, double)Initializes a new instance of the Vector4 struct.
Vector4(double, double, double, double)Initializes a new instance of the Vector4 struct.

Methods

NameDescription
CompareTo(Vector4)Compare current vector to another instance.
override Equals(object)Check if two vectors are equal
override GetHashCode()Gets the hash code of this vector
Set(double, double, double)Sets vector’s xyz components at a time, w will be set to 1
Set(double, double, double, double)Sets vector’s all components at a time
override ToString()Returns a String that represents the current Vector4.
operator +Operator overloading for +
explicit operator
operator *Operator overloading for * (2 operators)
operator -Operator overloading for - (minus)

Fields

NameDescription
WThe w component.
XThe x component.
YThe y component.
ZThe z component.

See Also