Quats and Vectors - Conversion And Handling

So I was looking through Object.h and noticed some things were uncharacteristically absent, specifically in how vectors and rotators used to be handled in unrealscript.

1. VSize. How do you do VSize/VSize2D in C++? Was looking through Object.h and didn’t find anything like that.
2. QuatToRotator / QuatFromRotator. Again, nothing found in the Object.h header file regarding these, despite FRotator and FQuat being supported data types.

Are these converters built in somewhere, or are the updates for these in code forthcoming?

Vector.Size() and Vector.Size2D() is what you want. Structs being able to have member functions in C++ means you can just go to the struct definition and look at all the functions available. Check out Core/Public/Math/Vector.h.

To convert a rotator to a quat you can just use the constructor:

FQuat Q = FQuat(MyRotator);

or this:

FQuat Q = MyRotator.Quaternion();

Similarly to convert the other way you can do:

FRotator MyRot = FRotator(MyQuat);

or :

FRotator MyRot = MyQuat.Rotator();