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
(Vec3 t0, Vec3 v1, Vec3 t1, double t, Vec3 dest)
| 1443 | * @return this |
| 1444 | */ |
| 1445 | public Vec3 hermite(Vec3 t0, Vec3 v1, Vec3 t1, double t, Vec3 dest) { |
| 1446 | dest.x = Interpolate.hermite(x, t0.x, v1.x, t1.x, t); |
| 1447 | dest.y = Interpolate.hermite(y, t0.y, v1.y, t1.y, t); |
| 1448 | dest.z = Interpolate.hermite(z, t0.z, v1.z, t1.z, t); |
| 1449 | return this; |
| 1450 | } |
| 1451 | |
| 1452 | /** |
| 1453 | * Linearly interpolate <code>this</code> and <code>other</code> using the given interpolation factor <code>t</code> and store the result in <code>this</code>. |