Searched refs:DAMPING_RATIO (Results 1 – 1 of 1) sorted by relevance
130 private static final double DAMPING_RATIO = 0.98; field in EdgeEffect775 final double mDampedFreq = NATURAL_FREQUENCY * Math.sqrt(1 - DAMPING_RATIO * DAMPING_RATIO); in updateSpring()779 double sinCoeff = (1 / mDampedFreq) * (DAMPING_RATIO * NATURAL_FREQUENCY in updateSpring()781 double distance = Math.pow(Math.E, -DAMPING_RATIO * NATURAL_FREQUENCY * deltaT) in updateSpring()784 double velocity = distance * (-NATURAL_FREQUENCY) * DAMPING_RATIO in updateSpring()785 + Math.pow(Math.E, -DAMPING_RATIO * NATURAL_FREQUENCY * deltaT) in updateSpring()