Struct Vector4
Vector4 structure
A vector with four components.
public struct Vector4 : IComparable<Vector4>
Constructors
| Name | Description |
|---|
| 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
| Name | Description |
|---|
| 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
| Name | Description |
|---|
| W | The w component. |
| X | The x component. |
| Y | The y component. |
| Z | The z component. |
See Also