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)
| 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. |