Changeset 10817 for OpenSceneGraph/trunk/include/osg/Vec2d
- Timestamp:
- 11/23/09 11:01:44 (3 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/Vec2d (modified) (2 diffs)
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 }
