Here you can find the source of angleLinear(float a, float b, int spin, float f)
public static float angleLinear(float a, float b, int spin, float f)
//package com.java2s; public class Main { public static float angleLinear(float a, float b, int spin, float f) { if (spin == 0) return a; if (spin > 0 && (b - a) < 0) b += 360.0f;/*from ww w . java 2 s . c o m*/ if (spin < 0 && (b - a) > 0) b -= 360.0f; return linear(a, b, f); } public static float linear(float a, float b, float f) { return a + (b - a) * f; } }