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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected abstract QuaternionDoubleinterpolate(QuaternionDouble q0, QuaternionDouble q1, double alpha) updateOrientation(Instant instant) updateOrientation(Date date)
-
Field Details
-
lastOrientation
-
-
Constructor Details
-
QuaternionInterpolationOrientationServer
-
-
Method Details
-
updateOrientation
- Specified by:
updateOrientationin interfaceOrientationServer
-
updateOrientation
- Specified by:
updateOrientationin interfaceOrientationServer
-
interpolate
protected abstract QuaternionDouble interpolate(QuaternionDouble q0, QuaternionDouble q1, double alpha) -
getCurrentOrientation
- Specified by:
getCurrentOrientationin interfaceOrientationServer
-
hasOrientation
public boolean hasOrientation()- Specified by:
hasOrientationin interfaceOrientationServer
-