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

 1 modified
Legend:
 Unmodified
 Added
 Removed

OpenSceneGraph/trunk/include/osg/Vec3f
r7648 r10817 117 117 } 118 118 119 /** Unary multiply by vector. */ 120 inline Vec3f& operator *= (const Vec3f& rhs) 121 { 122 _v[0]*=rhs[0]; 123 _v[1]*=rhs[1]; 124 _v[2]*=rhs[2]; 125 return *this; 126 } 127 119 128 /** Divide by scalar. */ 120 129 inline const Vec3f operator / (value_type rhs) const … … 129 138 _v[1]/=rhs; 130 139 _v[2]/=rhs; 140 return *this; 141 } 142 143 /** Unary divide by vector. */ 144 inline Vec3f& operator /= (const Vec3f& rhs) 145 { 146 _v[0]/=rhs[0]; 147 _v[1]/=rhs[1]; 148 _v[2]/=rhs[2]; 131 149 return *this; 132 150 }