Home
last modified time | relevance | path

Searched refs:v_clamped (Results 1 – 1 of 1) sorted by relevance

/external/mesa3d/src/imgui/
Dimgui_widgets.cpp2083 const TYPE v_clamped = (v_min < v_max) ? ImClamp(v, v_min, v_max) : ImClamp(v, v_max, v_min); in SliderCalcRatioFromValueT() local
2086 if (v_clamped < 0.0f) in SliderCalcRatioFromValueT()
2088 const float f = 1.0f - (float)((v_clamped - v_min) / (ImMin((TYPE)0, v_max) - v_min)); in SliderCalcRatioFromValueT()
2093 … const float f = (float)((v_clamped - ImMax((TYPE)0, v_min)) / (v_max - ImMax((TYPE)0, v_min))); in SliderCalcRatioFromValueT()
2099 return (float)((FLOATTYPE)(v_clamped - v_min) / (FLOATTYPE)(v_max - v_min)); in SliderCalcRatioFromValueT()