Class ControlCurve
- java.lang.Object
-
- org.hortonmachine.gears.utils.math.interpolation.splines.ControlCurve
-
-
Constructor Summary
Constructors Constructor Description ControlCurve()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description doubleaddPoint(double x, double y)add a control point, return index of new control pointabstract List<org.locationtech.jts.geom.Coordinate>getInterpolated()voidremovePoint()remove selected control pointintselectPoint(double x, double y)return index of control point near to (x,y) or -1 if nothing nearvoidsetPoint(double x, double y)set selected control pointStringtoString()
-
-
-
Field Detail
-
EPSILON
public static final int EPSILON
- See Also:
- Constant Field Values
-
pts
protected List<org.locationtech.jts.geom.Coordinate> pts
-
selection
protected int selection
-
-
Method Detail
-
selectPoint
public int selectPoint(double x, double y)return index of control point near to (x,y) or -1 if nothing near
-
addPoint
public double addPoint(double x, double y)add a control point, return index of new control point
-
setPoint
public void setPoint(double x, double y)set selected control point
-
removePoint
public void removePoint()
remove selected control point
-
getInterpolated
public abstract List<org.locationtech.jts.geom.Coordinate> getInterpolated()
-
-