openframeworks/openFrameworks — pull request #1205 by damiannz (2012-04-23 22:31:13+00:00)
Title: Fix ofVec2/3/4f float assignment

@ofTheo @memo @bilderbuchi @ofZach For your consideration (ref #1200)

~~~~
ofVec3f p( 1, 2, 3 ); // p is { 1, 2, 3 }
p.set( 4 ); // ok, p is now { 4, 4, 4 }
p = ofVec3f( 5 ); // ok, p is now { 5, 5, 5 }
p.set( 6, 7 ); // ok, p is now { 6, 7, 0 }
p = 8; // generates error 'No match for 'operator=' in 'p = 8'
~~~~

Behaviour is similar with ofVec2f and ofVec4f.

`p.set( 6, 7 )` works via the `ofVec3f( const ofVec2f& )` constructor. Similar things happen with the `ofVec4f( const ofVec3f& )` constructor.