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

Method hermite

src/main/java/field/linalg/Vec2.java:647–651  ·  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

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

Source from the content-addressed store, hash-verified

645 * @return this
646 */
647 public Vec2 hermite(Vec2 t0, Vec2 v1, Vec2 t1, double t, Vec2 dest) {
648 dest.x = Interpolate.hermite(x, t0.x, v1.x, t1.x, t);
649 dest.y = Interpolate.hermite(y, t0.y, v1.y, t1.y, t);
650 return this;
651 }
652
653 /**
654 * Add <code>v</code> to this vector.

Callers

nothing calls this directly

Calls 1

hermiteMethod · 0.95

Tested by

no test coverage detected