quat-double.hpp

Go to the documentation of this file.
00001 //=============================================================================
00002 /*! quat*=double operator */
00003 inline quat& quat::operator*=(const double& d)
00004 {
00005   x *=d;
00006   y *=d;
00007   z *=d;
00008   r *=d;
00009   return *this;
00010 }
00011 
00012 //=============================================================================
00013 /*! quat/=double operator */
00014 inline quat& quat::operator/=(const double& d)
00015 {
00016   x /=d;
00017   y /=d;
00018   z /=d;
00019   r /=d;
00020   return *this;
00021 }
00022 
00023 ///////////////////////////////////////////////////////////////////////////////
00024 ///////////////////////////////////////////////////////////////////////////////
00025 ///////////////////////////////////////////////////////////////////////////////
00026 
00027 //=============================================================================
00028 /*! quat*double operator */
00029 inline quat operator*(const quat& q, const double& d)
00030 {
00031   return quat( q.x*d, q.y*d, q.z*d, q.r*d );
00032 }
00033 
00034 //=============================================================================
00035 /*! quat/double operator */
00036 inline quat operator/(const quat& q, const double& d)
00037 {
00038   return quat( q.x/d, q.y/d, q.z/d, q.r/d );
00039 }

Generated on Tue Mar 15 16:02:38 2005 for QVM by  doxygen 1.4.1