Yahoo! UI Library

CHZERO  1.0.0

Yahoo! UI Library > CHZERO > OpenLayers.Geometry.Point
Search:
 
Filters

Class OpenLayers.Geometry.Point - extends OpenLayers.Geometry

OpenLayers.Geometry.Point
Point geometry class.

Constructor

OpenLayers.Geometry.Point ( point )
Parameters:
point <OpenLayers.Geometry.Point>

Properties

x - {Float}


y - {Float}


Methods

clone

void clone ( )

distanceTo

Number | Object distanceTo ( geometry , options )
Parameters:
geometry <OpenLayers.Geometry>
options <Object>
Returns: Number | Object
distance

equals

void equals ( geometry )
Parameters:
geometry <OpenLayers.Geometry>

getCentroid

OpenLayers.Geometry.Point getCentroid ( weighted )
Parameters:
weighted <Boolean>
Returns: OpenLayers.Geometry.Point
centroid

getVertices

Array getVertices ( nodes )
Parameters:
nodes <Boolean>
Returns: Array
vertices

intersects

Boolean intersects ( geometry )
Parameters:
geometry <OpenLayers.Geometry>
Returns: Boolean
intersects

move

void move ( x , y )
Parameters:
x <Float>
y <Float>

resize

void resize ( scale , origin , ratio )
Parameters:
scale <Float>
origin <OpenLayers.Geometry.Point>
ratio <Float> default 1.

rotate

void rotate ( angle , origin )
Parameters:
angle <Float> degree
origin <OpenLayers.Geometry.Point> center point

transform

OpenLayers.Geometry transform ( source , dest )
Parameters:
source <OpenLayers.Projection>
dest <OpenLayers.Projection>
Returns: OpenLayers.Geometry
geometry


Copyright © 2012 Yahoo! Inc. All rights reserved.