This class is not supported, and probably isn’t what you’re looking for. Instead, most users probably want something like:
var poly = new OpenLayers.Bounds(0,0,10,10).toGeometry();
This will create a rectangular Polygon geometry.
| OpenLayers. | This class is not supported, and probably isn’t what you’re looking for. | 
| Constructor | |
| OpenLayers. | |
| Functions | |
| getLength | {Float} The length of the geometry | 
| getArea | {Float} The area of the geometry | 
| points | {Array(OpenLayers.Geometry.Point)} | 
{Float} The length of the geometry
getLength: function() 
{Float} The area of the geometry
getArea: function()