thcmedia / papervision3d

Automatically exported from code.google.com/p/papervision3d
0 stars 0 forks source link

Number2D.add Calculation Issue #199

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
Fixed, thanks for reporting

Original comment by tim.k...@gmail.com on 22 Jun 2009 at 3:16