Can someone tell me what lines of code TransformPosition runs in the background?
Why don’t you Look Into the source Code?
The source code does basically consist of other ue4 function, and there needs to be an easier explanation of it.
FORCEINLINE FVector FTransform::TransformPosition(const FVector& V) const
{
DiagnosticCheckNaN_All();
const VectorRegister InputVectorW0 = VectorLoadFloat3_W0(&V);
//Transform using QST is following
//QST(P) = Q.Rotate(S*P) + T where Q = quaternion, S = scale, T = translation
//RotatedVec = Q.Rotate(Scale*V.X, Scale*V.Y, Scale*V.Z, 0.f)
const VectorRegister ScaledVec = VectorMultiply(Scale3D, InputVectorW0);
const VectorRegister RotatedVec = VectorQuaternionRotateVector(Rotation, ScaledVec);
const VectorRegister TranslatedVec = VectorAdd(RotatedVec, Translation);
FVector Result;
VectorStoreFloat3(TranslatedVec, &Result);
return Result;
}