 FVector4

Module 

Header 
/Engine/Source/Runtime/Core/Public/Math/Vector4.h 
Include 
#include "Math/Vector4.h" 
struct FVector4
A 4D homogeneous vector, 4x1 FLOATs, 16byte aligned.
Name  Description  

float 
W 
The vector's Wcomponent. 

float 
X 
The vector's Xcomponent. 

float 
Y 
The vector's Ycomponent. 

float 
Z 
The vector's Zcomponent. 
Name  Description  

FVector4 ( 
Creates and initializes a new vector from a color value. 

FVector4 ( 
Creates and initializes a new vector from an int vector value. 

FVector4 ( 
Creates and initializes a new vector to zero. 

FVector4 ( 
Constructor. FVector4 inline functions 

FVector4 
Creates and initializes a new vector from the specified 2D vectors. 

FVector4 ( 
Creates and initializes a new vector from the specified components. 
Name  Description  

float & 
Component ( 
Gets a specific component of the vector. 


const float & 
Component ( 
Gets a specific component of the vector. 

ContainsNaN() 
Utility to check if there are any nonfinite values (NaN or Inf) in this vector. 

void 
DiagnosticCheckNaN() 


Equals ( 
Error tolerant comparison. 


void 
FindBestAxisVectors3 
Find good arbitrary axis vectors to represent U and V axes of a plane, given just the normal. 

GetSafeNormal ( 
Returns a normalized copy of the vector if safe to normalize. 


GetUnsafeNormal3() 
Calculates normalized version of vector without checking if it is nonzero. 

InitFromString ( 
Initialize this Vector based on an FString. 


IsNearlyZero3 ( 
Utility to check if all of the components of this vector are nearly zero given the tolerance. 


IsUnit3 ( 
Check if the vector is of unit length, with specified tolerance. 


Reflect3 ( 
Reflect vector. 


Rotation() 
Return the FRotator orientation corresponding to the direction in which the vector points. 

Serialize ( 

void 
Set ( 
Set all of the vectors coordinates. 


float 
Size() 
Get the length (magnitude) of this vector, taking the W component into account 

float 
Size3() 
Get the length of this vector not taking W component into account. 

float 
SizeSquared() 
Get the squared length of this vector, taking the W component into account 

float 
SizeSquared3() 
Get the squared length of this vector not taking W component into account. 

ToOrientationQuat() 
Return the Quaternion orientation corresponding to the direction in which the vector points. 


ToOrientationRotator() 
Return the FRotator orientation corresponding to the direction in which the vector points. 


ToString() 
Get a textual representation of the vector. 
Name  Description  


operator ( 
Gets the result of subtracting a vector from this. 


operator() 
Gets a negated copy of the vector. 


operator!= ( 
Checks for inequality against another vector. 


operator* ( 
Gets the result of multiplying a vector with this. 


operator* ( 
Gets the result of scaling this vector. 

operator*= ( 
Gets the result of scaling this vector. 

operator*= ( 
Gets the result of multiplying a vector with another Vector (component wise). 


operator/ ( 
Gets the result of dividing this vector. 


operator/ ( 
Gets the result of dividing this vector. 

operator/= ( 
Gets the result of dividing a vector with another Vector (component wise). 


float 
operator[] ( 
Access a specific component of the vector. 
float & 
operator[] ( 
Access a specific component of the vector. 


operator^ ( 
Calculate Cross product between this and another vector. 


operator+ ( 
Gets the result of adding a vector to this. 

operator+= ( 
Adds another vector to this one. 

operator= ( 
Subtracts another vector to this one. 


operator== ( 
Checks for equality against another vector. 