-
- 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
CatmullRomInterpolator.Type
public class
CatmullRomInterpolator.Params
-
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. -
-
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.
-
-
-
-