Class SmoothCubicInterpolator

java.lang.Object
org.vanted.animation.interpolators.Interpolator
org.vanted.animation.interpolators.SmoothCubicInterpolator

public class SmoothCubicInterpolator
extends Interpolator
Uses the same mathematical equation as a CubicInterpolator but with different constants. This provides a smoother interpolation and lessens the 'overshooting' effect that is apparent with the CubicInterpolator.
Author:
- Patrick Shaw
  • Constructor Details

    • SmoothCubicInterpolator

      public SmoothCubicInterpolator()
  • Method Details

    • interpolate

      public double interpolate​(double t, double... y)
    • toString

      public String toString()
      Overrides:
      toString in class Object