Changeset 10817 for OpenSceneGraph/trunk/include/osg/Vec3d
 Timestamp:
 11/23/09 11:01:44 (6 years ago)
 Files:

 1 modified
Legend:
 Unmodified
 Added
 Removed

OpenSceneGraph/trunk/include/osg/Vec3d
r7648 r10817 122 122 } 123 123 124 /** Unary multiply by vector. */ 125 inline Vec3d& operator *= (const Vec3d& rhs) 126 { 127 _v[0]*=rhs[0]; 128 _v[1]*=rhs[1]; 129 _v[2]*=rhs[2]; 130 return *this; 131 } 132 124 133 /** Divide by scalar. */ 125 134 inline const Vec3d operator / (value_type rhs) const … … 134 143 _v[1]/=rhs; 135 144 _v[2]/=rhs; 145 return *this; 146 } 147 148 /** Unary divide by vector. */ 149 inline Vec3d& operator /= (const Vec3d& rhs) 150 { 151 _v[0]/=rhs[0]; 152 _v[1]/=rhs[1]; 153 _v[2]/=rhs[2]; 136 154 return *this; 137 155 }