Class DragForce

java.lang.Object
org.oscim.utils.animation.DragForce

public final class DragForce extends Object
See https://developer.android.com/reference/android/support/animation/FlingAnimation.html Class androidx.dynamicanimation.animation.FlingAnimation
  • Constructor Details

    • DragForce

      public DragForce()
  • Method Details

    • setFrictionScalar

      public void setFrictionScalar(float frictionScalar)
    • getFrictionScalar

      public float getFrictionScalar()
    • updateValueAndVelocity

      public float updateValueAndVelocity(long deltaT)
      Updates the animation state (i.e. value and velocity).
      Parameters:
      deltaT - time elapsed in millisecond since last frame
      Returns:
      the value delta since last frame
    • setValueAndVelocity

      public void setValueAndVelocity(float value, float velocity)
    • getValue

      public float getValue()
    • getVelocity

      public float getVelocity()
    • getAcceleration

      public float getAcceleration(float position, float velocity)
    • isAtEquilibrium

      public boolean isAtEquilibrium(float value, float velocity)
    • setValueThreshold

      public void setValueThreshold(float threshold)