|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.web3d.vrml.renderer.common.input.dis.Vector3dVariable
public class Vector3dVariable
A variable for solving translation convergence.
| Constructor Summary | |
|---|---|
Vector3dVariable(int order,
Solver pSolver)
Constructor. |
|
| Method Summary | |
|---|---|
void |
decodeState(double[] state)
Decodes the state of this variable from the format used by the differential equation solver. |
void |
encodeState()
Encodes the state of this variable (its value and the values of its derivatives) into a format suitable for use by the differential equation solver. |
void |
getDerivatives(javax.vecmath.Vector3d[] result)
Retrieves the values of the derivatives of this variable. |
void |
getRatesOfChange(double[] values,
double time,
double[] results)
Returns the rates of change corresponding to the given values and time. |
void |
getValue(javax.vecmath.Vector3d result)
Retrieves the current value of this variable. |
void |
interpolate(Vector3dVariable v1,
Vector3dVariable v2,
double alpha,
long newReferenceTime)
Sets the state of this variable to an interpolated state between the two specified variables. |
void |
makeCurrent(long newReferenceTime)
Makes the values of this variable current by integrating over time. |
void |
set(Vector3dVariable pVariable)
Sets the state of this variable to that of another variable. |
void |
set(javax.vecmath.Vector3d pValue,
javax.vecmath.Vector3d[] pDerivatives,
long pReferenceTime)
Sets the state of this variable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Vector3dVariable(int order,
Solver pSolver)
order - the order of the convergerpSolver - The solver to use, or null to generate one locally| Method Detail |
|---|
public void set(javax.vecmath.Vector3d pValue,
javax.vecmath.Vector3d[] pDerivatives,
long pReferenceTime)
pValue - the value of the variablepDerivatives - the value of the variable's derivativespReferenceTime - the reference time at which the values were validpublic void set(Vector3dVariable pVariable)
pVariable - the variable to copy
public void interpolate(Vector3dVariable v1,
Vector3dVariable v2,
double alpha,
long newReferenceTime)
v1 - the starting variablev2 - the ending variablealpha - the interpolation parameternewReferenceTime - the new reference timepublic void makeCurrent(long newReferenceTime)
newReferenceTime - the new reference timepublic void encodeState()
public void decodeState(double[] state)
state - the state vector to decodepublic void getValue(javax.vecmath.Vector3d result)
result - a Vector3d to hold the resultpublic void getDerivatives(javax.vecmath.Vector3d[] result)
result - an array to hold the result
public void getRatesOfChange(double[] values,
double time,
double[] results)
getRatesOfChange in interface SolverTargetvalues - the values at which to evaluate the rates of changetime - the time at which to evaluate the rates of changeresults - an array to hold the calculated rates
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||