/LegendUtils

一堆自写工具类,视自己的需要而添加……

Primary LanguageJava

LegendUtils

Various tools

markdown test below

	public float getInterpolation(float x) {
		float result;
		if (x < 0.5) {
			result = (float) (1.0f - Math.pow((1.0f - 2 * x), 2 * mFactor)) / 2;
		} else {
			result = (float) Math.pow((x - 0.5) * 2, 2 * mFactor) / 2 + 0.5f;
		}
		return result;
	}