Package 

Class CatmullRomInterpolator

  • All Implemented Interfaces:
    com.androidplot.xy.Interpolator

    
    public class CatmullRomInterpolator
     implements Interpolator<CatmullRomInterpolator.Params>
                        

    An implementation of Catmull-Rom interpolation, based on the information found at: http://stackoverflow.com/questions/9489736/catmull-rom-curve-with-no-cusps-and-no-self-intersections/19283471#19283471

    • Method Summary

      Modifier and Type Method Description
      List<XYCoords> interpolate(XYSeries series, CatmullRomInterpolator.Params params) This method will calculate the Catmull-Rom interpolation curve, returning it as a list of Coord coordinateobjects.
      • Methods inherited from class com.androidplot.xy.Interpolator

        interpolate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • interpolate

         List<XYCoords> interpolate(XYSeries series, CatmullRomInterpolator.Params params)

        This method will calculate the Catmull-Rom interpolation curve, returning it as a list of Coord coordinateobjects. This method in particular adds the first and last control points which are not visible, but requiredfor calculating the spline.

        Parameters:
        series - The list of original straight line points to calculate an interpolation from.