Template Function holoscan::interpolate(K, const SO2&, const SO2&)
Defined in File interpolation.hpp
-
template<typename K>
SO2<K> holoscan::interpolate(K p, const SO2<K> &a, const SO2<K> &b) Interpolate between two 2D rotations.
Due to the nature of rotations this function is problematic if the two rotations are about 180 degrees apart. In that case small deviations in the input may have large deviations in the output.
- Template Parameters
K – Scalar type.
- Parameters
p – Interpolation parameter (0.0 returns a, 1.0 returns b).
a – First rotation.
b – Second rotation.
- Returns
Interpolated rotation.