public void update(double t) { super.update(t); if (m_value != null) { double portion = getPortion(t); double x = m_xHermite.evaluate(portion); double y = m_yHermite.evaluate(portion); double z = m_zHermite.evaluate(portion); m_value.setPositionRightNow(x, y, z, m_subject); edu.cmu.cs.stage3.math.Quaternion q = edu.cmu.cs.stage3.math.Quaternion.interpolate( m_quaternion0, m_quaternion1, getPortion(t)); m_value.setOrientationRightNow(q, m_subject); } }
public void setQuaternion(Quaternion quaternion, ReferenceFrame asSeenBy) { setAxes(quaternion.getMatrix33(), asSeenBy); }