rem: var rotatedAngle = angle + (i * 2 * Math.PI / sides); 
add: rotatedAngle = angle + (i * 2 * Math.PI / sides); 
context: OpenLayers.Geometry.Polygon.createRegularPolygon = function(origin, radius, sides, rotation) {      var angle = Math.PI * ((1/sides) - (1/2));    if(rotation) {        angle += (rotation / 180) * Math.PI;    }    var rotateAngle, x, y;    var points = [];    for(var i=0; i<sides; ++i) {        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));    }    var ring = new OpenLayers.Geometry.LinearRing(points);    return new OpenLayers.Geometry.Polygon([ring]);};
meta: 4411	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4411/3030d1bd34d94a157c430ec450ebbce48dfae689/Polygon.js/clean/lib/OpenLayers/Geometry/Polygon.js