Searched refs:targetFraction (Results 1 – 2 of 2) sorted by relevance
85 static inline float moveTowardsFraction (float x, float targetFraction) in moveTowardsFraction() argument89 DE_ASSERT(de::inBounds(targetFraction, 0.0f, 1.0f)); in moveTowardsFraction()90 const float y = x + 0.5f - targetFraction; in moveTowardsFraction()91 …eturn deFloatFloor(y) + deFloatFrac(y)*(1.0f-strictness) + strictness*0.5f - 0.5f + targetFraction; in moveTowardsFraction()
102 static inline float moveTowardsFraction (float x, float targetFraction) in moveTowardsFraction() argument106 DE_ASSERT(de::inBounds(targetFraction, 0.0f, 1.0f)); in moveTowardsFraction()107 const float y = x + 0.5f - targetFraction; in moveTowardsFraction()108 …eturn deFloatFloor(y) + deFloatFrac(y)*(1.0f-strictness) + strictness*0.5f - 0.5f + targetFraction; in moveTowardsFraction()