A class representing the screen point.
EMAPI. | A class representing the screen point. |
Properties | |
x | {Float} Coordinate x of point. |
y | {Float} Coordinate y of point. |
Functions | |
EMAPI. | Constructor the new instance of screen point. |
toString | Returns the coordinates of the point in a text form. |
clone | Creates a copy of the screen point. |
equals | Compares two screen point, the current one with the one transmitted in a parameter. |
add | Creates a copy of the screen point with coordinates shifted by given values. |
offset | Creates a copy of the screen point with coordinates shifted by given point. |
clone:function()
Creates a copy of the screen point.
{EMAPI.Pixel} New EMAPI.Pixel object class with the same coordinates.
equals:function( px )
Compares two screen point, the current one with the one transmitted in a parameter.
px | {EMAPI.Pixel} Point for compare with the current one. |
{Boolean} InformatiParametry:on on whether points are the same.
add:function( x, y )
Creates a copy of the screen point with coordinates shifted by given values.
x | {Float} Shift of coordinate x. |
y | {Float} Shift of coordinate y. |
{EMAPI.Pixel} The new shifted EMAPI.Pixel object.
offset:function( px )
Creates a copy of the screen point with coordinates shifted by given point.
px | {EMAPI.Pixel} Coordinates shift |
{EMAPI.Pixel} The new shifted EMAPI.Pixel object.
Returns the coordinates of the point in a text form.
toString:function()
Creates a copy of the screen point.
clone:function()
Compares two screen point, the current one with the one transmitted in a parameter.
equals:function( px )
Creates a copy of the screen point with coordinates shifted by given values.
add:function( x, y )
Creates a copy of the screen point with coordinates shifted by given point.
offset:function( px )