Rotate vector around axis c++

Tell me how to write in C++.

Here’s some untested code

FVector InputVector = FVector(100.0f, 0.0f, 0.0f);
FVector Axis = FVector(0.0f, 0.0f, 1.0f);
FVector RotatedVector = InputVector.RotateAngleAxis(15.0f, Axis);
2 Likes

Thank you, friend.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.