MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / hermite

Method hermite

src/main/java/field/linalg/Vec4.java:1116–1122  ·  view source on GitHub ↗

Compute a hermite interpolation between this vector and its associated tangent t0 and the given vector v with its tangent t1 and store the result in dest . @param t0 the tangent of this vector @param v1 the other vecto

(Vec4 t0, Vec4 v1, Vec4 t1, double t, Vec4 dest)

Source from the content-addressed store, hash-verified

1114 * @param dest will hold the result
1115 * @return this
1116 */
1117 public Vec4 hermite(Vec4 t0, Vec4 v1, Vec4 t1, double t, Vec4 dest) {
1118 dest.x = Interpolate.hermite(x, t0.x, v1.x, t1.x, t);
1119 dest.y = Interpolate.hermite(y, t0.y, v1.y, t1.y, t);
1120 dest.z = Interpolate.hermite(z, t0.z, v1.z, t1.z, t);
1121 dest.w = Interpolate.hermite(z, t0.w, v1.w, t1.w, t);
1122 return this;
1123 }
1124
1125

Callers

nothing calls this directly

Calls 1

hermiteMethod · 0.95

Tested by

no test coverage detected