Linear interpolation from a to b where f is the percent across @param a the first pos (0) @param b the second pos (1) @param f the percent @return the value
(double a, double b, double f)
| 86 | * @return the value |
| 87 | */ |
| 88 | public static double lerp(double a, double b, double f) { |
| 89 | return a + (f * (b - a)); |
| 90 | } |
| 91 | |
| 92 | /** |
| 93 | * Bilinear interpolation |
no outgoing calls
no test coverage detected