|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.math.TCBSpline
public class TCBSpline
TCB spline A non-uniform spline with tensity, continuity and bias controls C1 continous, interpolates the points {link http://hmi.ewi.utwente.nl/aigaion/?page=publication&kind=single&ID=358}
| Field Summary | |
|---|---|
private float[] |
bias
|
private float[] |
continuity
|
private float[] |
interpolationPoints
|
private float[] |
interpolationTimes
|
private float |
m0
|
private float |
mn
|
private float[] |
tension
|
| Constructor Summary | |
|---|---|
TCBSpline()
Constructor, m0, mn and interpolation points have to be set manually when this zero-argument constructor is used |
|
TCBSpline(float[] val,
float[] time,
float[] t,
float[] c,
float[] b,
float startSpeed,
float endSpeed)
Constructor |
|
| Method Summary | |
|---|---|
float |
eval(float t)
Get the interpolation value at time t |
static float |
getValueCustomSpeed(float t,
float p0,
float p1,
float m0,
float m1)
Get the interpolation value for custom speed at interpolation points p0 and p1 |
private static double |
h0(double t)
|
private static double |
h1(double t)
|
private static double |
h2(double t)
|
private static double |
h3(double t)
|
void |
setBias(float[] bias)
|
void |
setContinuity(float[] continuity)
|
void |
setInterpolationPoints(float[] interpolationPoints)
|
void |
setInterpolationTimes(float[] interpolationTimes)
|
void |
setM0(float m0)
|
void |
setMn(float mn)
|
void |
setTension(float[] tension)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private float[] interpolationPoints
private float[] interpolationTimes
private float[] tension
private float[] continuity
private float[] bias
private float m0
private float mn
| Constructor Detail |
|---|
public TCBSpline()
public TCBSpline(float[] val,
float[] time,
float[] t,
float[] c,
float[] b,
float startSpeed,
float endSpeed)
val - interpolation pointstime - interpolation timest - tensionc - continuityb - biasstartSpeed - start speedendSpeed - end speed| Method Detail |
|---|
private static double h0(double t)
private static double h1(double t)
private static double h2(double t)
private static double h3(double t)
public float eval(float t)
t - time
public static float getValueCustomSpeed(float t,
float p0,
float p1,
float m0,
float m1)
t - time 0<=t<=1p0 - 1st interpolation pointp1 - 2nd interpolation pointm0 - speed at p0m1 - speed at p1
public void setInterpolationPoints(float[] interpolationPoints)
interpolationPoints - The interpolationPoints to set.public void setM0(float m0)
m0 - The m0 to set.public void setMn(float mn)
mn - The mn to set.public void setBias(float[] bias)
bias - the bias to setpublic void setContinuity(float[] continuity)
continuity - the continuity to setpublic void setInterpolationTimes(float[] interpolationTimes)
interpolationTimes - the interpolationTimes to setpublic void setTension(float[] tension)
tension - the tension to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||