Changeset 10817 for OpenSceneGraph/trunk/include/osg/Vec4d
- Timestamp:
- 11/23/09 11:01:44 (3 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/Vec4d (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/Vec4d
r8038 r10817 152 152 } 153 153 154 /** Unary multiply by vector. */ 155 inline Vec4d& operator *= (const Vec4d& rhs) 156 { 157 _v[0]*=rhs[0]; 158 _v[1]*=rhs[1]; 159 _v[2]*=rhs[2]; 160 _v[3]*=rhs[3]; 161 return *this; 162 } 163 154 164 /** Divide by scalar. */ 155 165 inline Vec4d operator / (value_type rhs) const … … 165 175 _v[2]/=rhs; 166 176 _v[3]/=rhs; 177 return *this; 178 } 179 180 /** Unary divide by vector. */ 181 inline Vec4d& operator /= (const Vec4d& rhs) 182 { 183 _v[0]/=rhs[0]; 184 _v[1]/=rhs[1]; 185 _v[2]/=rhs[2]; 186 _v[3]/=rhs[3]; 167 187 return *this; 168 188 }
