Unverified Commit 37077467 authored by acpaquette's avatar acpaquette Committed by GitHub
Browse files

Fixed rotation/angular velocity interpolation (#482)

parent e898629c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -268,8 +268,8 @@ class TimeDependentRotation:

        # Determine interpolation intervals for input times
        av_idx = np.searchsorted(self.times, vec_times)
        rot_idx = av_idx - 1
        rot_idx[rot_idx < 0] = 0
        rot_idx = av_idx
        rot_idx[rot_idx > len(self.times) - 1] = len(self.times) - 1

        # Interpolate/extrapolate rotations
        time_diffs = vec_times - self.times[rot_idx]
+3946 −3946

File changed.

Preview size limit exceeded, changes collapsed.

+55564 −55564

File changed.

Preview size limit exceeded, changes collapsed.

+9533 −9533

File changed.

Preview size limit exceeded, changes collapsed.

+3942 −3942

File changed.

Preview size limit exceeded, changes collapsed.

Loading