Class LinearInterpolatorTransform3D_f


  • public class LinearInterpolatorTransform3D_f
    extends InterpolatorTransform3D_f
    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

      • LinearInterpolatorTransform3D_f

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

        public LinearInterpolatorTransform3D_f​(Transform3Df start,
                                               Transform3Df 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.