Function anim::apply_flat_handles

Function Documentation

void anim::apply_flat_handles(Keyframe &keyframe, const Keyframe *prev_keyframe_ptr, const Keyframe *next_keyframe_ptr)

Computes HandleMode::Flat handles for a keyframe.

Handles take the keyframe’s value (a horizontal tangent); their times are adjustable but clamped within the neighbouring keyframes.

Parameters:
  • keyframe – The keyframe to update (modified in place).

  • prev_keyframe_ptr – Previous keyframe, or nullptr if this is the first.

  • next_keyframe_ptr – Next keyframe, or nullptr if this is the last.