holoscan::interpolate

Beta
View as Markdown
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.

Returns: Interpolated rotation.

Template parameters

K
typename

Scalar type.

Parameters

p
K

Interpolation parameter (0.0 returns a, 1.0 returns b).

a
const SO2<K> &

First rotation.

b
const SO2<K> &

Second rotation.