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:
parent
b5a3a58076
commit
fe09ebfbdb
@ -59,6 +59,7 @@ class Vec2f
|
||||
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( 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) const { return _v[i]; }
|
||||
|
Loading…
Reference in New Issue
Block a user