Skip to main content
Cleanup
Source Link
DMGregory
  • 141k
  • 23
  • 258
  • 401

Do iI use XMQuaternionRotationAxis for CreateFromAxisAngle? And also,

Yes.

What function do I use for: Transform

You use XMVector3Rotate.

You can find these matches just by comparing the function signatures, or plugging "DirectXMath rotate vector by quaternion" into a search engine (this was on the first page of results)..

Do i use XMQuaternionRotationAxis for CreateFromAxisAngle? And also,

Yes.

What function do I use for: Transform

You use XMVector3Rotate.

You can find these matches just by comparing the function signatures, or plugging "DirectXMath rotate vector by quaternion" into a search engine (this was on the first page of results)..

Do I use XMQuaternionRotationAxis for CreateFromAxisAngle?

Yes.

What function do I use for: Transform

You use XMVector3Rotate.

You can find these matches just by comparing the function signatures, or plugging "DirectXMath rotate vector by quaternion" into a search engine (this was on the first page of results)..

Source Link
DMGregory
  • 141k
  • 23
  • 258
  • 401

Do i use XMQuaternionRotationAxis for CreateFromAxisAngle? And also,

Yes.

What function do I use for: Transform

You use XMVector3Rotate.

You can find these matches just by comparing the function signatures, or plugging "DirectXMath rotate vector by quaternion" into a search engine (this was on the first page of results)..