com.levigo.jadice.document.util
Class NaturalCubicSpline1D

java.lang.Object
  extended by com.levigo.jadice.document.util.ControlCurve
      extended by com.levigo.jadice.document.util.NaturalCubicSpline1D
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
GradationCurve

public class NaturalCubicSpline1D
extends ControlCurve

A ControlCurve implementation based on a cubic spline.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.levigo.jadice.document.util.ControlCurve
curveChanged, points
 
Constructor Summary
NaturalCubicSpline1D()
           
 
Method Summary
protected  void computeCurve()
           
 Polygon getCurve()
           
 double getValueAt(double xp)
          Get the y-value at a given x location
 
Methods inherited from class com.levigo.jadice.document.util.ControlCurve
addControlPoint, getControlPoint, getControlPoints, getPointCount, insertControlPoint, removeControlPoint, setControlPoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NaturalCubicSpline1D

public NaturalCubicSpline1D()
Method Detail

computeCurve

protected void computeCurve()

getCurve

public Polygon getCurve()
Specified by:
getCurve in class ControlCurve
See Also:
ControlCurve.getCurve()

getValueAt

public double getValueAt(double xp)
Get the y-value at a given x location



Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.