Class LinearInterpolation

    • Constructor Detail

      • LinearInterpolation

        public LinearInterpolation​(double startTime,
                                   double endTime,
                                   OrientedPoint3d origin,
                                   OrientedPoint3d destination)
        constructs a new LinearInterpolation.
        Parameters:
        startTime - double; the startingTime
        endTime - double; the endTime
        origin - OrientedPoint3d; the origin
        destination - OrientedPoint3d; the destination
    • Method Detail

      • getLocation

        public OrientedPoint3d getLocation​(double time)
        returns the current location.
        Specified by:
        getLocation in interface InterpolationInterface
        Parameters:
        time - double; the current time
        Returns:
        OrientedPoint3d the current location