1
|
OpenLayers.Pixel
|
2
|
|
3
|
This class represents a screen coordinate in x and y coordinates.
|
4
|
|
5
|
* Constructor
|
6
|
OpenLayers.Pixel({float|x}, {float|y}) -- Create Pixel.
|
7
|
|
8
|
* Methods
|
9
|
toString() -- {String} -- Converts to human readable string.
|
10
|
clone() -- {OpenLayers.Pixel} -- Returns a copy of the pixel.
|
11
|
equals({OpenLayers.Pixel|px}) -- {Boolean} -- Tests for equivilance.
|
12
|
add({int|x}, {int|y}) -- {OpenLayers.Pixel} -- add x and y to the current coordinates.
|
13
|
offset({OpenLayers.Pixel|pixel}) -- {OpenLayers.Pixel} -- Add pixels together.
|