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

Method trilerp

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

Trilinear interpolation @param a the first point (0, 0, 0) @param b the second point (1, 0, 0) @param c the third point (0, 0, 1) @param d the fourth point (1, 0, 1) @param e the fifth point (0, 1, 0) @param f the sixth point (1, 1, 0) @param g the seventh point (0, 1, 1) @param h the eighth point

(double a, double b, double c, double d, double e, double f, double g, double h, double x, double y, double z)

Source from the content-addressed store, hash-verified

121 * @return the trilerped value
122 */
123 public static double trilerp(double a, double b, double c, double d, double e, double f, double g, double h, double x, double y, double z) {
124 return lerp(bilerp(a, b, c, d, x, y), bilerp(e, f, g, h, x, y), z);
125 }
126
127 /**
128 * Clip a value

Callers

nothing calls this directly

Calls 2

lerpMethod · 0.95
bilerpMethod · 0.95

Tested by

no test coverage detected