From fe09ebfbdb75bc679ccc013c1e4de810dc1a6917 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 26 Jun 2015 09:40:37 +0000 Subject: [PATCH] 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 --- include/osg/Vec2f | 1 + 1 file changed, 1 insertion(+) diff --git a/include/osg/Vec2f b/include/osg/Vec2f index 6fee4a331..35d82dae3 100644 --- a/include/osg/Vec2f +++ b/include/osg/Vec2f @@ -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]; }