Quaternion inverse() in btQuaternion.h
Posted: Tue Mar 25, 2008 12:46 pm
Hi, I' ve a small question about inverse() as coded in btQuaternion.h :
I thougth that inverse was the conjugate divided by the norm (if not a unit quaternion)
So I would see instead :
Is this equivalent or it's a bug ?
Code: Select all
btQuaternion inverse() const
{
return btQuaternion(m_x, m_y, m_z, -m_unusedW);
}
So I would see instead :
Code: Select all
btQuaternion inverse() const
{
return btQuaternion(-m_x, -m_y, -m_z, m_unusedW);
}