/** * 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>. * <p> * If <code>t</code> is <code>0.0</code> then the result is <code>this</code>. If the interpolation factor is <code>1.0</code> * then the result is <code>other</code>. * * @param other * the other vector * @param t * the interpolation factor between 0.0 and 1.0 * @return a vector holding the result */ public Vector4f lerp(Vector4fc other, float t) { return lerp(other, t, thisOrNew()); }
/** * 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>. * <p> * If <code>t</code> is <code>0.0</code> then the result is <code>this</code>. If the interpolation factor is <code>1.0</code> * then the result is <code>other</code>. * * @param other * the other vector * @param t * the interpolation factor between 0.0 and 1.0 * @return a vector holding the result */ public Vector4f lerp(Vector4fc other, float t) { return lerp(other, t, thisOrNew()); }