SP3-16 Math #8

Merged
direnbharwani merged 4 commits from SP3-16-Math into main 2022-09-08 23:35:14 +08:00
1 changed files with 11 additions and 0 deletions
Showing only changes of commit f0b916b275 - Show all commits

View File

@ -258,6 +258,17 @@ namespace SHADE
return result;
}
SHQuaternion SHQuaternion::Inverse(const SHQuaternion& q) noexcept
{
SHQuaternion result;
const XMVECTOR Q = XMLoadFloat4(&q);
XMStoreFloat4(&result, XMQuaternionInverse(Q));
return result;
}
float SHQuaternion::Angle(const SHQuaternion&, const SHQuaternion&) noexcept
{
// TODO (Diren)