Renderer/src/main/java/electrosphere/util/math/BasicMathUtils.java
austin b70febb678
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
synchronized time-of-day
2025-05-30 16:01:30 -04:00

20 lines
464 B
Java

package electrosphere.util.math;
/**
* Basic math functions
*/
public class BasicMathUtils {
/**
* Linearly interpolates between two doubles
* @param a The first double
* @param b The second double
* @param percent The percentage to interpolate between them
* @return The interpolated value
*/
public static double lerp(double a, double b, double percent){
return a * (1.0 - percent) + (b * percent);
}
}