Class LinearInterpolatorRotation3D


  • public class LinearInterpolatorRotation3D
    extends InterpolatorRotation3D
    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

      • LinearInterpolatorRotation3D

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

        public LinearInterpolatorRotation3D​(Rotation3D start,
                                            Rotation3D 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.