Yahoo! UI Library

CHZERO  1.0.0

Yahoo! UI Library > CHZERO > Curve.js (source view)
Search:
 
Filters
/**
 * OpenLayers.Geometry.Curve<br/>
 * A Curve is a MultiPoint, whose points are assumed to be connected.  To this end, we provide a “getLength()” function, which iterates through the points, summing the distances between them.<BR/>
 * @class Curve
 * @extends OpenLayers.Geometry.MultiPoint
 * @constructor
 * @namespace OpenLayers.Geometry
 * @param {Array(OpenLayers.Geometry.Point)} point
 */
OpenLayers.Geometry.Curve = OpenLayers.Class(OpenLayers.Geometry.MultiPoint,{
	/**
	* @method getLength
	* @return {Float} geometry length
	**/
	getLength: function(){},
	/**
	* @method getGeodesicLength
	* @param {OpenLayers.Projection} projection
	* @return {Float} geodesic area
	**/
	getGeodesicLength: function(projection){}
});

Copyright © 2012 Yahoo! Inc. All rights reserved.