Searched refs:targetFraction (Results 1 – 2 of 2) sorted by relevance
82 static inline float moveTowardsFraction (float x, float targetFraction) in moveTowardsFraction() argument86 DE_ASSERT(de::inBounds(targetFraction, 0.0f, 1.0f)); in moveTowardsFraction()87 const float y = x + 0.5f - targetFraction; in moveTowardsFraction()88 …eturn deFloatFloor(y) + deFloatFrac(y)*(1.0f-strictness) + strictness*0.5f - 0.5f + targetFraction; in moveTowardsFraction()
100 static inline float moveTowardsFraction (float x, float targetFraction) in moveTowardsFraction() argument104 DE_ASSERT(de::inBounds(targetFraction, 0.0f, 1.0f)); in moveTowardsFraction()105 const float y = x + 0.5f - targetFraction; in moveTowardsFraction()106 …eturn deFloatFloor(y) + deFloatFrac(y)*(1.0f-strictness) + strictness*0.5f - 0.5f + targetFraction; in moveTowardsFraction()