|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jeospace.navigation.QuaternionInterpolator
An orientation interpolator that takes quaternions as arguments. The interpolation follows the shortest path from initial orientation to final orientation along a "great circle" path. The algorithm implemented is known as: SLERP or "Spherical linear interpolation of unit quaternions".
| Constructor Summary | |
QuaternionInterpolator(Quaternion begin,
Quaternion end)
Construct a QuaternionInterpolator |
|
| Method Summary | |
void |
addInterpolationListener(InterpolationListener il)
Add a listener to this interpolator |
void |
enableOrientation(boolean enabled)
Set the state of the interpolator to update it's Alpha in
response to update( ) calls. |
protected void |
fireInterpolationEvent(int id)
Deliver events to the listeners |
void |
get(Attitude attitude)
Return the orientation data in the argument object. |
void |
get(Quaternion quat)
Return the orientation value as a Quaternion |
Alpha |
getAlpha()
Return the Alpha object |
void |
removeInterpolationListener(InterpolationListener il)
Remove a listener from this interpolator |
void |
setAlpha(Alpha alpha)
Set the Alpha object to drive the interpolator |
void |
updateOrientation(double timeValue)
Process any position changes for the next simulation frame. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public QuaternionInterpolator(Quaternion begin,
Quaternion end)
QuaternionInterpolator
begin - the initial orientationend - the final orientation| Method Detail |
public void setAlpha(Alpha alpha)
Alpha object to drive the interpolator
setAlpha in interface OrientationInterpolatoralpha - the Alpha object to installpublic Alpha getAlpha()
Alpha object
getAlpha in interface OrientationInterpolatorAlpha objectpublic void updateOrientation(double timeValue)
Alpha of this interpolator
by a single increment.
updateOrientation in interface OrientationtimeValue - the time value is ignoredpublic void enableOrientation(boolean enabled)
Alpha in
response to update( ) calls.
enableOrientation in interface Orientationenabled - true if the object should update it's
Alpha in response to update( ) calls,
false if the object should NOT update it's Alpha
in response to update( ) calls.public void get(Quaternion quat)
Quaternion
get in interface Orientationquat - the Quaternion object to initialize with
the orientation value calculated at the fraction value of the
Alphapublic void get(Attitude attitude)
get in interface Orientationattitude - the Attitude coordinate object to initialize with
the current orientation data.public void addInterpolationListener(InterpolationListener il)
addInterpolationListener in interface OrientationInterpolatoril - the InterpolationListenerpublic void removeInterpolationListener(InterpolationListener il)
removeInterpolationListener in interface OrientationInterpolatoril - the InterpolationListenerprotected void fireInterpolationEvent(int id)
id - the InterpolationEvent id
|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||