public static float tangent(float a, float b, float c, float t) { return 2 * (t * (a + c - 2 * b) - a + b); }