This class represents a screen coordinate, in x and y coordinates
| OpenSpace. | This class represents a screen coordinate, in x and y coordinates |
| Constructor | |
| OpenSpace. | Create a new OpenSpace.ScreenPoint instance |
| Functions | |
| toString | Cast this object into a string |
| clone | Return a clone of this ScreenPoint object |
| equals | Determine whether one pixel is equivalent to another |
| add | |
| offset | Parameters px - {OpenSpace.ScreenPoint} |
clone:function()
Return a clone of this ScreenPoint object
{OpenSpace.ScreenPoint} A clone screen point
equals:function( px )
Determine whether one pixel is equivalent to another
| px | {OpenSpace.ScreenPoint} |
{Boolean} The point passed in as parameter is equal to this. Note that if px passed in is null, returns false.
add:function( x, y )
| x | {Integer} |
| y | {Integer} |
{OpenSpace.ScreenPoint} A new Pixel with this pixel’s x&y augmented by the values passed in.
offset:function( px )
Parameters px - {OpenSpace.ScreenPoint}
{OpenSpace.ScreenPoint} A new Pixel with this pixel’s x&y augmented by the x&y values of the pixel passed in.
Cast this object into a string
toString:function()
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 )