lerp#

Fully qualified name: isaacsim::sensors::physics::lerp

inline float isaacsim::sensors::physics::lerp(
const float &start,
const float &end,
const float t,
)#

Linear interpolation between two values.

Performs linear interpolation between start and end values based on the interpolation factor t. The interpolation is calculated as: start + ((end - start) * t).

Note

The interpolation factor t should be between 0.0 and 1.0 for expected results.

Parameters:
  • start[in] Starting value for interpolation.

  • end[in] Ending value for interpolation.

  • t[in] Interpolation factor between 0.0 and 1.0.

Returns:

The interpolated value.