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

template<typename Scalar>
Quaternion< Scalar > Quaternion< Scalar >::conjugate ( void   )  const [inline]

Returns:
the conjugate of the *this which is equal to the multiplicative inverse if the quaternion is normalized. The conjugate of a quaternion represents the opposite rotation.
See also:
Quaternion::inverse()

Definition at line 430 of file Quaternion.h.

References Quaternion< _Scalar >::Quaternion(), Quaternion< _Scalar >::w(), Quaternion< _Scalar >::x(), Quaternion< _Scalar >::y(), and Quaternion< _Scalar >::z().

Referenced by Quaternion< _Scalar >::inverse().

{
  return Quaternion(this->w(),-this->x(),-this->y(),-this->z());
}


Generated by  Doxygen 1.6.0   Back to index