remove local scope variables from global namespace.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@5028 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Paul Spencer
2007-10-19 18:34:00 +00:00
parent 4bafcddff1
commit 65d3947045
13 changed files with 19 additions and 19 deletions

View File

@@ -79,7 +79,7 @@ OpenLayers.Geometry.Polygon.createRegularPolygon = function(origin, radius, side
var rotateAngle, x, y;
var points = [];
for(var i=0; i<sides; ++i) {
rotatedAngle = angle + (i * 2 * Math.PI / sides);
var rotatedAngle = angle + (i * 2 * Math.PI / sides);
x = origin.x + (radius * Math.cos(rotatedAngle));
y = origin.y + (radius * Math.sin(rotatedAngle));
points.push(new OpenLayers.Geometry.Point(x, y));