From Christian Kehl, added Vec2::set(const Vec2) method

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14924 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield 2015-06-26 09:40:37 +00:00
parent b5a3a58076
commit fe09ebfbdb

View File

@ -59,6 +59,7 @@ class Vec2f
inline const value_type * ptr() const { return _v; } inline const value_type * ptr() const { return _v; }
inline void set( value_type x, value_type y ) { _v[0]=x; _v[1]=y; } inline void set( value_type x, value_type y ) { _v[0]=x; _v[1]=y; }
inline void set( const Vec2f& rhs) { _v[0]=rhs._v[0]; _v[1]=rhs._v[1]; }
inline value_type & operator [] (int i) { return _v[i]; } inline value_type & operator [] (int i) { return _v[i]; }
inline value_type operator [] (int i) const { return _v[i]; } inline value_type operator [] (int i) const { return _v[i]; }