Changeset 10817
- Timestamp:
- 11/23/09 11:01:44 (3 years ago)
- Location:
- OpenSceneGraph/trunk/include/osg
- Files:
-
- 6 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/Vec2d
r7648 r10817 95 95 } 96 96 97 /** Unary multiply by vector. */ 98 inline Vec2d& operator *= (const Vec2d& rhs) 99 { 100 _v[0]*=rhs[0]; 101 _v[1]*=rhs[1]; 102 return *this; 103 } 104 97 105 /** Divide by scalar. */ 98 106 inline const Vec2d operator / (value_type rhs) const … … 106 114 _v[0]/=rhs; 107 115 _v[1]/=rhs; 116 return *this; 117 } 118 119 /** Unary divide by vector. */ 120 inline Vec2d& operator /= (const Vec2d& rhs) 121 { 122 _v[0]/=rhs[0]; 123 _v[1]/=rhs[1]; 108 124 return *this; 109 125 } -
OpenSceneGraph/trunk/include/osg/Vec2f
r5328 r10817 92 92 } 93 93 94 /** Unary multiply by vector. */ 95 inline Vec2f& operator *= (const Vec2f& rhs) 96 { 97 _v[0]*=rhs[0]; 98 _v[1]*=rhs[1]; 99 return *this; 100 } 101 94 102 /** Divide by scalar. */ 95 103 inline const Vec2f operator / (value_type rhs) const … … 103 111 _v[0]/=rhs; 104 112 _v[1]/=rhs; 113 return *this; 114 } 115 116 /** Unary divide by vector. */ 117 inline Vec2f& operator /= (const Vec2f& rhs) 118 { 119 _v[0]/=rhs[0]; 120 _v[1]/=rhs[1]; 105 121 return *this; 106 122 } -
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 } -
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 } -
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 } -
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 }
