public static float point(float a, float b, float c, float t) { float tp = 1.0f - t; return a * tp * tp + 2 * b * t * tp + c * t * t; }