Package ai.deepar.ar

Class ARTouchInfo

java.lang.Object
ai.deepar.ar.ARTouchInfo

public class ARTouchInfo extends Object
Class containing touch-related data.
  • Constructor Details

    • ARTouchInfo

      public ARTouchInfo()
      Default class constructor.
    • ARTouchInfo

      public ARTouchInfo(float x, float y, ARTouchType touchType)
      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

      public ARTouchType getTouchType()
      Gets the type of touch.
      Returns:
      Type of touch.
    • setTouchType

      public void setTouchType(ARTouchType touchType)
      Sets the type of touch to the given value.
      Parameters:
      touchType - The given type of touch.