Instance Methods
touchCoord.getX() ⇒ Number
Get the X
Kind: Instance method of TouchCoord
Returns: Number
- the KEY_X value
touchCoord.getY() ⇒ Number
Get the Y
Kind: Instance method of TouchCoord
Returns: Number
- the KEY_Y value
touchCoord.setX(x) ⇒ TouchCoord
Set the X
Kind: Instance method of TouchCoord
Returns: TouchCoord
- The class instance for method chaining.
Param | Type | Description |
x |
Number |
The x coordinate of the touch. - The desired X.
{'num_min_value': 0, 'num_max_value': 10000} |
touchCoord.setY(y) ⇒ TouchCoord
Set the Y
Kind: Instance method of TouchCoord
Returns: TouchCoord
- The class instance for method chaining.
Param | Type | Description |
y |
Number |
The y coordinate of the touch. - The desired Y.
{'num_min_value': 0, 'num_max_value': 10000} |