Lines Matching defs:constrain
61 * <li>Maximum size used to constrain relative size, see
75 * <li>Minimum velocity used to constrain relative velocity, see
79 * <li>Maximum velocity used to constrain relative velocity, see
362 * be used to constrain the calculated relative edge size.
383 * the maximum edge will be used to constrain the calculated relative edge
556 return constrain(value * targetVelocity, minimumVelocity, maximumVelocity);
558 return -constrain(-value * targetVelocity, minimumVelocity, maximumVelocity);
607 final float edgeSize = constrain(relativeValue * size, NO_MIN, maxValue);
620 return constrain(interpolated, -1, 1);
652 private static int constrain(int value, int min, int max) {
662 private static float constrain(float value, float min, float max) {
776 mEffectiveRampDown = constrain((int) (currentTime - mStartTime), 0, mRampDownDuration);
791 return 0.5f * constrain(elapsedSinceStart / (float) mRampUpDuration, 0, 1);
795 * constrain(elapsedSinceEnd / (float) mEffectiveRampDown, 0, 1);