What steps will reproduce the problem?
var a:Number2D = new Number2D(1, 2);
var b:Number2D = new Number2D(3, 4);
var c:Number2D = Number2D.add(a, b);
trace(a.x);
What is the expected output? What do you see instead?
trace(a.x) should print 1 but print 4 instead.
What version of the product are you using? On what operating system?
trunk. Windows XP.
Please provide any additional information below.
Change line 71 of Number 2D from:
return new Number2D( v.x+=w.x, v.y+w.y);
to:
return new Number2D( v.x+w.x, v.y+w.y);
This will fix the issue.
Original issue reported on code.google.com by ichize...@gmail.com on 12 Jun 2009 at 8:27
Original issue reported on code.google.com by
ichize...@gmail.com
on 12 Jun 2009 at 8:27