/** * Interpolates between the control points at the given indices. * * @param start * The index of the control point to start from. * @param end * The index of the control point to end at. * @param t * Should be between zero and one. Zero will return point <code>start</code> while one will return * <code>end</code>, a value in between will return an interpolated vector between the two. * @return The interpolated vector. */ public ReadOnlyVector3 interpolate(final int start, final int end, final double t) { return interpolate(start, end, t, new Vector3()); }
/** * Interpolates between the control points at the given indices. * * @param start * The index of the control point to start from. * @param end * The index of the control point to end at. * @param t * Should be between zero and one. Zero will return point <code>start</code> while one will return * <code>end</code>, a value in between will return an interpolated vector between the two. * @return The interpolated vector. */ public ReadOnlyVector3 interpolate(final int start, final int end, final double t) { return interpolate(start, end, t, new Vector3()); }
_curve.interpolate(startIndex, endIndex, t, target);
_curve.interpolate(startIndex, endIndex, t, target);