Holoscan SDK v4.0.0

Template Function holoscan::interpolate(K, const SO2&, const SO2&)

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.

Previous Function holoscan::inference::validate_dependency_map
Next Template Function holoscan::interpolate(K, const SO3<K>&, const SO3<K>&)
© Copyright 2022-2026, NVIDIA. Last updated on Apr 1, 2026