EMAPI.Pixel

A class representing the screen point.

Summary
EMAPI.PixelA class representing the screen point.
Properties
x{Float} Coordinate x of point.
y{Float} Coordinate y of point.
Functions
EMAPI.PixelConstructor the new instance of screen point.
toStringReturns the coordinates of the point in a text form.
cloneCreates a copy of the screen point.
equalsCompares two screen point, the current one with the one transmitted in a parameter.
addCreates a copy of the screen point with coordinates shifted by given values.
offsetCreates a copy of the screen point with coordinates shifted by given point.

Properties

x

{Float} Coordinate x of point.

y

{Float} Coordinate y of point.

Functions

EMAPI.Pixel

Constructor the new instance of screen point.

Parameters

x{Float} Coordinate x of point.
y{Float} Coordinate y of point.

toString

toString:function()

Returns the coordinates of the point in a text form.

Result

{String} Text representation of the EMAPI.Pixel object (i.a.  “x=200.4,y=242.2”).

clone

clone:function()

Creates a copy of the screen point.

Result

{EMAPI.Pixel} New EMAPI.Pixel object class with the same coordinates.

equals

equals:function(px)

Compares two screen point, the current one with the one transmitted in a parameter.

Parameters

px{EMAPI.Pixel} Point for compare with the current one.

Result:

{Boolean} InformatiParametry:on on whether points are the same.

add

add:function(x,
y)

Creates a copy of the screen point with coordinates shifted by given values.

Parameters

x{Float} Shift of coordinate x.
y{Float} Shift of coordinate y.

Result

{EMAPI.Pixel} The new shifted EMAPI.Pixel object.

offset

offset:function(px)

Creates a copy of the screen point with coordinates shifted by given point.

Parameters

px{EMAPI.Pixel} Coordinates shift

Result

{EMAPI.Pixel} The new shifted EMAPI.Pixel object.

toString:function()
Returns the coordinates of the point in a text form.
clone:function()
Creates a copy of the screen point.
equals:function(px)
Compares two screen point, the current one with the one transmitted in a parameter.
add:function(x,
y)
Creates a copy of the screen point with coordinates shifted by given values.
offset:function(px)
Creates a copy of the screen point with coordinates shifted by given point.
Constructor the new instance of screen point.
Close