Package 

Class MultiTouchController.PositionAndScale

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private float xOff
      private float yOff
      private float scale
      private float scaleX
      private float scaleY
      private float angle
    • Method Summary

      Modifier and Type Method Description
      float getXOff()
      float getYOff()
      float getScale()
      float getScaleX() Included in case you want to support anisotropic scaling
      float getScaleY() Included in case you want to support anisotropic scaling
      float getAngle()
      void set(float xOff, float yOff, boolean updateScale, float scale, boolean updateScaleXY, float scaleX, float scaleY, boolean updateAngle, float angle) Set position and optionally scale, anisotropic scale, and/or angle.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getScaleX

         float getScaleX()

        Included in case you want to support anisotropic scaling

      • getScaleY

         float getScaleY()

        Included in case you want to support anisotropic scaling

      • set

         void set(float xOff, float yOff, boolean updateScale, float scale, boolean updateScaleXY, float scaleX, float scaleY, boolean updateAngle, float angle)

        Set position and optionally scale, anisotropic scale, and/or angle. Where if the corresponding "update" flag is set to false, the field'svalue will not be changed during a pinch operation. If the value is not being updated *and* the value is not used by the clientapplication, then the value can just be zero. However if the value is not being updated but the value *is* being used by the clientapplication, the value should still be specified and the update flag should be false (e.g. angle of the object being dragged should stillbe specified even if the program is in "resize" mode rather than "rotate" mode).