Add BaseTypes docs.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1268 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
13
doc/Pixel.txt
Normal file
13
doc/Pixel.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
OpenLayers.Pixel
|
||||
|
||||
This class represents a screen coordinate in x and y coordinates.
|
||||
|
||||
* Constructor
|
||||
OpenLayers.Pixel({float|x}, {float|y}) -- Create Pixel.
|
||||
|
||||
* Methods
|
||||
toString() -- {String} -- Converts to human readable string.
|
||||
clone() -- {OpenLayers.Pixel} -- Returns a copy of the pixel.
|
||||
equals({OpenLayers.Pixel|px}) -- {Boolean} -- Tests for equivilance.
|
||||
add({int|x}, {int|y}) -- {OpenLayers.Pixel} -- add x and y to the current coordinates.
|
||||
offset({OpenLayers.Pixel|pixel}) -- {OpenLayers.Pixel} -- Add pixels together.
|
||||
Reference in New Issue
Block a user