vec-double.hpp

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

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