Class RMPathFitCurves
java.lang.Object
com.inductiveautomation.rm.graphics.RMPathFitCurves
Bezier 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
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidfitCurveFromPointIndex(RMPath path, int index) Takes a path with a bunch of line-to segments and replaces them with curves.static ListgetFitCurveSegments(RMMath.RMFunc func, double start, double end, int nPts, double error) static voidgetFitCurveSegments(RMPoint[] d, RMSize startTan, RMSize endTan, List segs) Fit a curve, preserving the start & end tangents.
- 
Constructor Details- 
RMPathFitCurvespublic RMPathFitCurves()
 
- 
- 
Method Details- 
fitCurveFromPointIndexTakes a path with a bunch of line-to segments and replaces them with curves.
- 
getFitCurveSegmentsFit a curve, preserving the start & end tangents.
- 
getFitCurveSegmentspublic static List getFitCurveSegments(RMMath.RMFunc func, double start, double end, int nPts, double error) 
 
-