public class ARTouchInfo
extends java.lang.Object
Constructor and Description |
---|
ARTouchInfo()
Default class constructor.
|
ARTouchInfo(float x,
float y,
ARTouchType touchType)
Constructor that specifies the position and type of touch.
|
Modifier and Type | Method and Description |
---|---|
ARTouchType |
getTouchType()
Gets the type of touch.
|
float |
getX()
Gets the touch position's x-coordinate.
|
float |
getY()
Gets the touch position's y-coordinate.
|
void |
setTouchType(ARTouchType touchType)
Sets the type of touch to the given value.
|
void |
setX(float x)
Sets the touch position's x-coordinate to the given value.
|
void |
setY(float y)
Sets the touch position's y-coordinate to the given value.
|
public ARTouchInfo()
public ARTouchInfo(float x, float y, ARTouchType touchType)
x
- Touch position's x-coordinate.y
- Touch position's y-coordinate.touchType
- Type of touch.public float getX()
public void setX(float x)
x
- The given x-coordinate.public float getY()
public void setY(float y)
y
- The given y-coordinate.public ARTouchType getTouchType()
public void setTouchType(ARTouchType touchType)
touchType
- The given type of touch.