holoscan::pose_tree_math::interpolate
holoscan::pose_tree_math::interpolate
Linear interpolation between two values.
Returns a value between a and b at the relative position q. This function will also work for q outside of the unit interval for extrapolation.
Returns: Interpolated value a + q * (b - a).
Template parameters
K
Scalar type for interpolation parameter.
T
Type of values to interpolate.
Parameters
q
Interpolation parameter (0.0 returns a, 1.0 returns b).
a
First value.
b
Second value.