Class RMPathFitCurves
- java.lang.Object
- 
- com.inductiveautomation.rm.graphics.RMPathFitCurves
 
- 
 public class RMPathFitCurves extends java.lang.ObjectBezier curve fitting code adapted from "An Algorithm for Automatically Fitting Digitized Curves", by Philip J. Schneider "Graphics Gems", 1990 - Andrew S. Glassner, ed.
- 
- 
Constructor SummaryConstructors Constructor Description RMPathFitCurves()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidfitCurveFromPointIndex(RMPath path, int index)Takes a path with a bunch of line-to segments and replaces them with curves.static java.util.ListgetFitCurveSegments(RMMath.RMFunc func, double start, double end, int nPts, double error)static voidgetFitCurveSegments(RMPoint[] d, RMSize startTan, RMSize endTan, java.util.List segs)Fit a curve, preserving the start & end tangents.
 
- 
- 
- 
Method Detail- 
fitCurveFromPointIndexpublic static void fitCurveFromPointIndex(RMPath path, int index) Takes a path with a bunch of line-to segments and replaces them with curves.
 - 
getFitCurveSegmentspublic static void getFitCurveSegments(RMPoint[] d, RMSize startTan, RMSize endTan, java.util.List segs) Fit a curve, preserving the start & end tangents.
 - 
getFitCurveSegmentspublic static java.util.List getFitCurveSegments(RMMath.RMFunc func, double start, double end, int nPts, double error) 
 
- 
 
-