|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.math.CubicSplineInterpolator
public class CubicSplineInterpolator
Provides a technique to calculate a piece-wise bezier spline for a list of given points. As described in "Graphic Gems, Andrew Glassner (editor), Academic Press, 1990".
Constructor Summary | |
---|---|
CubicSplineInterpolator()
|
Method Summary | |
---|---|
BezierSpline |
calculateClosedBezierSpline(KVector[] points)
Calculates a closed piecewise bezier spline where the first point is start and end. |
BezierSpline |
interpolatePoints(KVector[] points)
returns a piecewise bezierspline. |
BezierSpline |
interpolatePoints(KVector[] points,
KVector startVec,
KVector endVec,
boolean tangendScale)
returns a piecewise bezierspline. |
BezierSpline |
interpolatePoints(LinkedList<KVector> points)
returns a piecewise bezierspline. |
BezierSpline |
interpolatePoints(LinkedList<KVector> points,
KVector startVec,
KVector endVec,
boolean tangendScale)
returns a piecewise bezierspline. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CubicSplineInterpolator()
Method Detail |
---|
public BezierSpline calculateClosedBezierSpline(KVector[] points)
points
- points being passed by the spline
public BezierSpline interpolatePoints(KVector[] points)
interpolatePoints
in interface ISplineInterpolator
points
- as an array, see implementing class if to prefer Vector or List implementation.
public BezierSpline interpolatePoints(LinkedList<KVector> points)
interpolatePoints
in interface ISplineInterpolator
points
- as an array, see implementing class if to prefer Vector or List implementation.
public BezierSpline interpolatePoints(KVector[] points, KVector startVec, KVector endVec, boolean tangendScale)
interpolatePoints
in interface ISplineInterpolator
points
- as an array, see implementing class if to prefer Vector or List implementation.startVec
- tangent vector specifying to head out of the first nodeendVec
- tangent vector specifying to head into the last nodetangendScale
- if true, the tangent is scaled depending on the distance to the next ctr point, if
false the tangent is used as passed
public BezierSpline interpolatePoints(LinkedList<KVector> points, KVector startVec, KVector endVec, boolean tangendScale)
interpolatePoints
in interface ISplineInterpolator
points
- as an array, see implementing class if to prefer Vector or List implementation.startVec
- tangent vector specifying to head out of the first nodeendVec
- tangent vector specifying to head into the last nodetangendScale
- if true, the tangent is scaled depending on the distance to the next ctr point, if
false the tangent is used as passed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |