MCPcopy Create free account
hub / github.com/VolmitSoftware/Adapt / lerp

Method lerp

src/main/java/com/volmit/adapt/util/M.java:88–90  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 14

getXpUntilLevelUpMethod · 0.95
loggedInMethod · 0.95
getBlockPowerMethod · 0.95
getMaxArmorPointsMethod · 0.95
getMaxArmorPerTickMethod · 0.95
getWindupTicksMethod · 0.95
onTickMethod · 0.95
getWindupTicksMethod · 0.95
onTickMethod · 0.95
onTickMethod · 0.95
getFoodCostMethod · 0.95
bilerpMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected