Class LinearInterpolatorRotation3Dd


  • public class LinearInterpolatorRotation3Dd
    extends InterpolatorSO3
    Make a linear interpolation between to position

    Given a start \mathbf{s}, end \mathbf{e} and duration d
    the interpolation is implemented as \mathbf{x}(t)=\mathbf{s} + (\mathbf{e}-\mathbf{s})*t/d.

    The template argument given needs to support addition with the "+" operator
    and scaling with a double using the "*" operator.

    For use with a rw::math::Transform3D see the template specialization
    • Constructor Detail

      • LinearInterpolatorRotation3Dd

        public LinearInterpolatorRotation3Dd​(long cPtr,
                                             boolean cMemoryOwn)
      • LinearInterpolatorRotation3Dd

        public LinearInterpolatorRotation3Dd​(Rotation3Dd start,
                                             Rotation3Dd end,
                                             double duration)
        Construct LinearInterpolator starting a start and finishing in end
        and taking duration time.

        If duration <= 0 an exception is thrown

        Parameters:
        start - [in] Start of interpolator
        end - [in] End of interpolator
        duration - [in] Time it takes to from one end to the other.