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

 1 modified
Legend:
 Unmodified
 Added
 Removed

OpenSceneGraph/trunk/include/osg/Vec4f
r7648 r10817 148 148 } 149 149 150 /** Unary multiply by vector. */ 151 inline Vec4f& operator *= (const Vec4f& rhs) 152 { 153 _v[0]*=rhs[0]; 154 _v[1]*=rhs[1]; 155 _v[2]*=rhs[2]; 156 _v[3]*=rhs[3]; 157 return *this; 158 } 159 150 160 /** Divide by scalar. */ 151 161 inline Vec4f operator / (value_type rhs) const … … 161 171 _v[2]/=rhs; 162 172 _v[3]/=rhs; 173 return *this; 174 } 175 176 /** Unary divide by vector. */ 177 inline Vec4f& operator /= (const Vec4f& rhs) 178 { 179 _v[0]/=rhs[0]; 180 _v[1]/=rhs[1]; 181 _v[2]/=rhs[2]; 182 _v[3]/=rhs[3]; 163 183 return *this; 164 184 }