After looking into this a bit more, I decided this is not actually a bug:
var point1 = new Point();
point1.angle = -45;
point1.length = -Math.sqrt(2);
// { x: -1, y: 1 }
var point2 = new Point(0, 0);
point2.length = -Math.sqrt(2);
point2.angle = -45;
// { x: 1, y: -1 }
Setting the length to negative values does not really make sense unless the vector already holds a value, in which case the effect is that it flips direction.
This is why in one version you don't see reversed vectors, and in the other you do.
If you make sure your length is never negative, this should not happen.
Best,
J
On Jun 22, 2013, at 10:22 , Евгений Хорев <
khorev...@gmail.com> wrote:
> Rose up to 0.9.4 and still there )
>