Package gaiasky.data.orientation
Class QuaternionInterpolationOrientationServer
java.lang.Object
gaiasky.data.orientation.QuaternionInterpolationOrientationServer
- All Implemented Interfaces:
OrientationServer
- Direct Known Subclasses:
QuaternionNlerpOrientationServer
,QuaternionSlerpOrientationServer
public abstract class QuaternionInterpolationOrientationServer
extends Object
implements OrientationServer
Abstract orientation server that reads a list of times and quaternions from a file, and interpolates
them using a specific function defined in the subclass.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
protected abstract QuaternionDouble
interpolate
(QuaternionDouble q0, QuaternionDouble q1, double alpha) updateOrientation
(Instant instant) updateOrientation
(Date date)
-
Field Details
-
lastOrientation
-
-
Constructor Details
-
QuaternionInterpolationOrientationServer
-
-
Method Details
-
updateOrientation
- Specified by:
updateOrientation
in interfaceOrientationServer
-
updateOrientation
- Specified by:
updateOrientation
in interfaceOrientationServer
-
interpolate
protected abstract QuaternionDouble interpolate(QuaternionDouble q0, QuaternionDouble q1, double alpha) -
getCurrentOrientation
- Specified by:
getCurrentOrientation
in interfaceOrientationServer
-
hasOrientation
public boolean hasOrientation()- Specified by:
hasOrientation
in interfaceOrientationServer
-