I have a point in the world say (x,y,z). I want to know its relative position in another axis where the origin was moved to some other point and rotated in some other degree.
I guess the answer lies somewhere in the FTransform.h but I am not sure what will work.
I have the direction and the origin both as vectors. And I am thinking of something like this. Not sure if this would work or not.
FTransform NewTrans;
NewTrans = FTransform(LocationToDetect);
NewTrans.ConcatenateRotation(Direction.Rotation().Quaternion());
NewTrans.AddToTranslation(RectangleCenter);
FVector NewLocation =NewTrans.GetLocation();
Here the Direction is the direction in which I want the origin tilted in FVector. and RectangleCenter is the center Point where I want the origin moved.