1
0
Fork 0

Updated WalkView: Added missing var keywords.

This commit is contained in:
Anders Gidenstam 2010-10-03 18:25:06 +02:00
parent ee5eceb3da
commit af740cd918

View file

@ -362,7 +362,7 @@ var TO_DEG = 180/math.pi;
var walkers = {};
var closerXY = func (pos, p1, p2) {
l1 = [p1[0] - pos[0], p1[1] - pos[1]];
l2 = [p2[0] - pos[0], p2[1] - pos[1]];
var l1 = [p1[0] - pos[0], p1[1] - pos[1]];
var l2 = [p2[0] - pos[0], p2[1] - pos[1]];
return (l1[0]*l1[0] + l1[1]*l1[1]) - (l2[0]*l2[0] + l2[1]*l2[1]);
}