Yahoo! UI Library

CHZERO  1.0.0

Yahoo! UI Library > CHZERO > Polygon.js (source view)
Search:
 
Filters
/**
 * OpenLayers.Geometry.Polygon<br/>
 * Polygon is a collection of Geometry.LinearRings.<BR/>
 * @class Polygon
 * @extends OpenLayers.Geometry.Collection
 * @constructor
 * @namespace OpenLayers.Geometry
 * @param {Array(OpenLayers.Geometry.LinearRing)} components
 */
OpenLayers.Geometry.Polygon = OpenLayers.Class(OpenLayers.Geometry.Collection,{
	/**
	* @method getArea
	* @return {Float} area
	**/
	getArea: function(){},
	/**
	* @method getGeodesicArea
	* @param {OpenLayers.Projection} projection
	* @return {Float} geodesic area
	**/
	getGeodesicArea: function(projection){},
	/**
	* @method intersects
	* @param {OpenLayers.Geometry} geometry
	* @return {Boolean} intersects
	*/	
	intersects: function(geometry){},
	/**
	*
	* @method distanceTo
	* @param {OpenLayers.Geometry} geometry
	* @param {Object} options
	* @return {Number | Object} distance
	**/
	distanceTo: function(geometry,options){},
	/**
	* @method createRegularPolygon
	* @param {OpenLayers.Geometry.Point} origin
	* @param {Float} radius
	* @param {Integer} sides
	* @param {Float} rotation
	*/
	createRegularPolygon: function(origin, radius, sides, rotation){}
});

Copyright © 2012 Yahoo! Inc. All rights reserved.