Logo Search packages:      
Sourcecode: blender version File versions  Download package

btScalar btQuaternion::angle ( const btQuaternion q  )  const [inline]

Return the angle between this quaternion and the other.

Parameters:
q The other quaternion

Definition at line 199 of file btQuaternion.h.

References dot(), and length2().

Referenced by slerp().

      {
            btScalar s = btSqrt(length2() * q.length2());
            btAssert(s != btScalar(0.0));
            return btAcos(dot(q) / s);
      }


Generated by  Doxygen 1.6.0   Back to index