OpenSpace Ordnance Survey Mapping API JavaScript Library Version 0.7.2 |
OpenSpace. ScreenPointThis class represents a screen coordinate, in x and y coordinates InheritsSummary
clone
Return a clone of this ScreenPoint object Returns{OpenSpace.ScreenPoint} A clone screen point equals
Determine whether one pixel is equivalent to another Parameters
Returns{Boolean} The point passed in as parameter is equal to this. Note that if px passed in is null, returns false. add
Parameters
Returns{OpenSpace.ScreenPoint} A new Pixel with this pixel’s x&y augmented by the values passed in. offset
Parameters px - {OpenSpace.ScreenPoint} Returns{OpenSpace.ScreenPoint} A new Pixel with this pixel’s x&y augmented by the x&y values of the pixel passed in. |
Return a clone of this ScreenPoint object
clone:function()
Determine whether one pixel is equivalent to another
equals:function( px )
add:function( x, y )
Parameters px - {OpenSpace.ScreenPoint}
offset:function( px )