类 MotionValue

java.lang.Object
polaris.sdk.ui.MotionValue

public final class MotionValue extends Object
Frame-rate-independent damped spring. Values are render state, never layout/hit-test state.
  • 构造器概要

    构造器
    构造器
    说明
     
    MotionValue(float value)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    static float
    clamp(float x)
     
    float
    follow(float target, double time, float response, boolean reduced)
    Critically predictable exponential tracking: no stale spring recoil on release.
    void
    snap(float target, double time)
     
    float
    to(float target, double time, float frequency, float damping, boolean reduced)
     
    float
     
    float
     
  • 构造器详细资料

  • 方法详细资料

    • snap

      public void snap(float target, double time)
    • value

      public float value()
    • velocity

      public float velocity()
    • to

      public float to(float target, double time, float frequency, float damping, boolean reduced)
    • follow

      public float follow(float target, double time, float response, boolean reduced)
      Critically predictable exponential tracking: no stale spring recoil on release.
    • clamp

      public static float clamp(float x)