Package ai.deepar.ar
Class ARTouchInfo
java.lang.Object
ai.deepar.ar.ARTouchInfo
Class containing touch-related data.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault class constructor.ARTouchInfo
(float x, float y, ARTouchType touchType) Constructor that specifies the position and type of touch. -
Method Summary
Modifier and TypeMethodDescriptionGets 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.
-
Constructor Details
-
ARTouchInfo
public ARTouchInfo()Default class constructor. -
ARTouchInfo
Constructor that specifies the position and type of touch.- Parameters:
x
- Touch position's x-coordinate.y
- Touch position's y-coordinate.touchType
- Type of touch.
-
-
Method Details
-
getX
public float getX()Gets the touch position's x-coordinate.- Returns:
- Touch position's x-coordinate.
-
setX
public void setX(float x) Sets the touch position's x-coordinate to the given value.- Parameters:
x
- The given x-coordinate.
-
getY
public float getY()Gets the touch position's y-coordinate.- Returns:
- Touch position's y-coordinate.
-
setY
public void setY(float y) Sets the touch position's y-coordinate to the given value.- Parameters:
y
- The given y-coordinate.
-
getTouchType
Gets the type of touch.- Returns:
- Type of touch.
-
setTouchType
Sets the type of touch to the given value.- Parameters:
touchType
- The given type of touch.
-