SP3-16 Math #8
|
@ -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