Added missing inverse function for Quaternions
This commit is contained in:
parent
392b51898a
commit
f0b916b275
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue