git-svn-id: http://svn.openlayers.org/trunk/openlayers@1268 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
14 lines
536 B
Plaintext
14 lines
536 B
Plaintext
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.
|