Searched refs:circularInterpolate (Results 1 – 2 of 2) sorted by relevance
/frameworks/support/v4/tests/java/android/support/v4/graphics/ |
D | ColorUtilsTest.java | 162 assertEquals(0f, ColorUtils.circularInterpolate(0, 180, 0f), 0f); in testCircularInterpolationForwards() 163 assertEquals(90f, ColorUtils.circularInterpolate(0, 180, 0.5f), 0f); in testCircularInterpolationForwards() 164 assertEquals(180f, ColorUtils.circularInterpolate(0, 180, 1f), 0f); in testCircularInterpolationForwards() 169 assertEquals(180f, ColorUtils.circularInterpolate(180, 0, 0f), 0f); in testCircularInterpolationBackwards() 170 assertEquals(90f, ColorUtils.circularInterpolate(180, 0, 0.5f), 0f); in testCircularInterpolationBackwards() 171 assertEquals(0f, ColorUtils.circularInterpolate(180, 0, 1f), 0f); in testCircularInterpolationBackwards() 176 assertEquals(270f, ColorUtils.circularInterpolate(270, 90, 0f), 0f); in testCircularInterpolationCrossZero() 177 assertEquals(180f, ColorUtils.circularInterpolate(270, 90, 0.5f), 0f); in testCircularInterpolationCrossZero() 178 assertEquals(90f, ColorUtils.circularInterpolate(270, 90, 1f), 0f); in testCircularInterpolationCrossZero()
|
/frameworks/support/v4/java/android/support/v4/graphics/ |
D | ColorUtils.java | 570 outResult[0] = circularInterpolate(hsl1[0], hsl2[0], ratio); in blendHSL() 598 static float circularInterpolate(float a, float b, float f) { in circularInterpolate() method in ColorUtils
|