Yahoo! UI Library

CHZERO  1.0.0

Yahoo! UI Library > CHZERO > Point.js (source view)
Search:
 
Filters
/**
 * OpenLayers.Geometry.Point<br/>
 * Point geometry class.<BR/>
 * @class Point
 * @extends OpenLayers.Geometry
 * @constructor
 * @namespace OpenLayers.Geometry
 * @param {OpenLayers.Geometry.Point} point
 */
OpenLayers.Geometry.Point = OpenLayers.Class(OpenLayers.Geometry,{
	/**
	* @property x
	* @type {Float}
	*/
	x: null,
	/**
	* @property y
	* @type {Float}
	*/
	y: null,
	/**
	* @method clone
	**/
	clone: function(){},
	/**
	*
	* @method distanceTo
	* @param {OpenLayers.Geometry} geometry
	* @param {Object} options
	* @return {Number | Object} distance
	**/
	distanceTo: function(geometry,options){},
	/**
	* @method equals
	* @param {OpenLayers.Geometry} geometry
	*/
	equals: function(geometry){},
	/**
	* @method move
	* @param {Float} x
	* @param {Float} y
	*/
	move: function(x,y){},
	/**
	* @method rotate
	* @param {Float} angle degree
	* @param {OpenLayers.Geometry.Point} origin center point
	*/
	rotate: function(angle, origin){},
	/**
	* @method getCentroid
	* @param {Boolean} weighted
	* @return {OpenLayers.Geometry.Point} centroid
	**/
	getCentroid: function(weighted){},
	/**
	* @method resize
	* @param {Float} scale 
	* @param {OpenLayers.Geometry.Point} origin
	* @param {Float} ratio default 1.
	*/
	resize: function(scale, origin, ratio){},
	/**
	* @method intersects
	* @param {OpenLayers.Geometry} geometry
	* @return {Boolean} intersects
	*/	
	intersects: function(geometry){},
	/**
	* @method transform
	* @param {OpenLayers.Projection} source
	* @param {OpenLayers.Projection} dest
	* @return {OpenLayers.Geometry} geometry
	*/
	transform: function(source,dest){},
	/**
	*
	* @method getVertices
	* @param {Boolean} nodes
	* @return {Array} vertices
	*/
	getVertices: function(nodes){}
});

Copyright © 2012 Yahoo! Inc. All rights reserved.